Skip to content

Instantly share code, notes, and snippets.

@kyontan
Created June 19, 2021 16:24
Show Gist options
  • Save kyontan/04c18df0a058f0414165bdcde15ccab8 to your computer and use it in GitHub Desktop.
Save kyontan/04c18df0a058f0414165bdcde15ccab8 to your computer and use it in GitHub Desktop.
Migrate existing WordPress to bitnami/wordpress-nginx
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