Merge pull request #246 from marcel-dempers/pods

add example pod manifest
This commit is contained in:
Marcel Dempers 2024-12-31 06:41:33 +11:00 committed by GitHub
commit 6e6be4b3f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

38
kubernetes/pods/pod.yaml Normal file
View File

@ -0,0 +1,38 @@
# kind create cluster --name pods --image kindest/node:v1.31.1
# kubectl apply -f pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: example-pod
namespace: default
labels:
app: example-app
test: test
spec:
nodeSelector:
kubernetes.io/os: linux
containers:
- name: example-app
image: aimvector/python:1.0.4
imagePullPolicy: Always
ports:
- containerPort: 5000
livenessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /
port: 5000
initialDelaySeconds: 3
periodSeconds: 3
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "256Mi"
cpu: "500m"