mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
add example pod manifest
This commit is contained in:
parent
53cc8ff8bf
commit
1b8ca7bc4c
38
kubernetes/pods/pod.yaml
Normal file
38
kubernetes/pods/pod.yaml
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user