Files
myceliumcloud-examples/examples/nginx-mycelium/nginx-mycelium-deployment.yaml

50 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-mycelium
labels:
app: nginx-mycelium
network: mycelium
spec:
replicas: 3
selector:
matchLabels:
app: nginx-mycelium
template:
metadata:
labels:
app: nginx-mycelium
network: mycelium
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
resources:
limits:
cpu: 200m
memory: 64Mi
requests:
cpu: 100m
memory: 32Mi
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 3
periodSeconds: 5
volumeMounts:
- name: html-content
mountPath: /usr/share/nginx/html/index.html
subPath: index.html
volumes:
- name: html-content
configMap:
name: nginx-mycelium-content