60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mirror-almalinux
|
|
namespace: default
|
|
labels:
|
|
app: mirror-almalinux
|
|
id: mirror-web
|
|
annotations:
|
|
operator.1password.io/auto-restart: "true"
|
|
spec:
|
|
revisionHistoryLimit: 2
|
|
selector:
|
|
matchLabels:
|
|
app: mirror-almalinux
|
|
replicas: 2
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mirror-almalinux
|
|
id: mirror-web
|
|
spec:
|
|
containers:
|
|
- name: mirror-almalinux
|
|
image: 0xemma/nginx-autoindex:json-4
|
|
resources:
|
|
limits:
|
|
memory: 8000Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 8000Mi
|
|
env:
|
|
- name: API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: AMPLIFY_API_KEY
|
|
name: amplify-secret
|
|
- name: AMPLIFY_IMAGENAME
|
|
value: "almalinux"
|
|
volumeMounts:
|
|
- mountPath: /var/lib/nginx/html
|
|
name: mirror-pvc
|
|
ports:
|
|
- containerPort: 80
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
volumes:
|
|
- name: mirror-pvc
|
|
persistentVolumeClaim:
|
|
claimName: mirror-almalinux
|