robosats-deploy/k8s/base/nginx/deployment.yml
Reckless_Satoshi a069f98a1a init
2023-09-29 05:10:16 -07:00

47 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
selector:
matchLabels:
app: nginx
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:stable
ports:
- containerPort: 80
resources:
limits:
cpu: "1"
memory: "100Mi"
requests:
cpu: "1m"
memory: "5Mi"
volumeMounts:
- name: static-data
mountPath: /usr/src/static
readOnly: true
- name: nginx-conf
mountPath: /etc/nginx/conf.d/local.conf
subPath: local.conf
- name: nginx-conf
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
volumes:
- name: static-data
persistentVolumeClaim:
claimName: static-pvc
- name: nginx-conf
configMap:
name: nginx-configmap