argocd-test/kustomize/wordpress-app-deployment.yaml

50 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2023-08-04 21:57:57 +02:00
<EFBFBD><EFBFBD>apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
labels:
app: wordpress
spec:
replicas: 1
2023-08-04 21:57:57 +02:00
revisionHistoryLimit: 3
selector:
matchLabels:
app: wordpress
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: wordpress
tier: frontend
spec:
containers:
- image: wordpress:6.2.1-apache
name: wordpress
env:
- name: WORDPRESS_DEBUG
value: "1"
2023-08-04 21:57:57 +02:00
- name: WORDPRESS_DB_HOST
value: kustomize-wordpress-mysql
2023-08-04 21:57:57 +02:00
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-pass
key: password
- name: WORDPRESS_DB_NAME
value: wordpress
2023-08-04 21:57:57 +02:00
- name: WORDPRESS_DB_USER
value: wordpress
ports:
- containerPort: 80
name: wordpress
volumeMounts:
- name: wordpress-persistent-storage
mountPath: /var/www/html
volumes:
- name: wordpress-persistent-storage
persistentVolumeClaim:
claimName: wordpress-pv-claim
2023-08-04 21:57:57 +02:00