Add a skeleton k8s deployment setup
DNS will come later
This commit is contained in:
24
k8s/whoami/deployment.yml
Normal file
24
k8s/whoami/deployment.yml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: whoami
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: whoami
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: whoami
|
||||
spec:
|
||||
containers:
|
||||
- name: whoami
|
||||
image: traefik/whoami
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
ports:
|
||||
- containerPort: 80
|
||||
imagePullPolicy: Always
|
Reference in New Issue
Block a user