k8s_website/website_deployment.yml

42 lines
877 B
YAML
Raw Permalink Normal View History

2021-07-23 15:58:35 -04:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: website
spec:
selector:
matchLabels:
app: website
replicas: 1
strategy:
type: RollingUpdate
2021-07-23 15:58:35 -04:00
template:
metadata:
labels:
app: website
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
2021-12-27 15:15:37 -05:00
- key: kubernetes.io/arch
2021-07-23 15:58:35 -04:00
operator: In
values:
2022-11-20 20:42:16 -05:00
- arm64
2021-07-23 15:58:35 -04:00
containers:
- name: website
image: nginx
ports:
- containerPort: 80
name: "website"
volumeMounts:
- name: website
mountPath: "/usr/share/nginx/html"
volumes:
- name: website
persistentVolumeClaim:
claimName: website-pvc
# EOF