Created
June 19, 2021 16:24
-
-
Save kyontan/04c18df0a058f0414165bdcde15ccab8 to your computer and use it in GitHub Desktop.
Migrate existing WordPress to bitnami/wordpress-nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: wordpress | |
name: blog | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: wordpress | |
template: | |
metadata: | |
labels: | |
app: wordpress | |
spec: | |
containers: | |
- env: | |
- name: WORDPRESS_SKIP_BOOTSTRAP | |
value: "yes" | |
- name: ALLOW_EMPTY_PASSWORD | |
value: "yes" | |
image: bitnami/wordpress-nginx:latest | |
imagePullPolicy: Always | |
name: wordpress | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
volumeMounts: | |
- mountPath: /bitnami | |
name: wordpress-pv | |
volumes: | |
- name: wordpress-pv | |
persistentVolumeClaim: | |
claimName: wordpress-pvc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment