34074d33ff
* First Korean I10n work for release-1.14 - ko: Fix nav-menu sync in tutorials/statefulset #13374 (#13474) - ko: add outdated files in dev-1.14-ko.1 branch (#13473) - Translate title of concepts/../image.md Ko (#13507) - ko: add translation tutorial/stateful-application/cassandra #12450 (#13515) - Translate reference/kubectl/cheatsheet in Korean (#13549) - Translate tasks/access-application-cluster/access-cluster in Korean (#13565) - ko: add tutorials/stateful-application/mysql-wordpress-persistent-vol… (#13516) - Issue 12838 object management kubectl imperative config (#13657) - Translate standardized glossary Tag Fandamental in Korean (#13552) Co-authored-by: Kim Young Dae <38598117+zer0big@users.noreply.github.com> Co-authored-by: Yoon <learder@gmail.com> Co-authored-by: lapee79 <lapee79@gmail.com> Co-authored-by: Jesang Myung <jesang.myung@gmail.com> Co-authored-by: Seokho <shsongist@gmail.com> Co-authored-by: Claudia J.Kang <claudiajkang@gmail.com> Co-authored-by: June Yi <june.yi@samsung.com> * Fix conflict : pick-right-solution
68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: wordpress
|
|
labels:
|
|
app: wordpress
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
selector:
|
|
app: wordpress
|
|
tier: frontend
|
|
type: LoadBalancer
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: wp-pv-claim
|
|
labels:
|
|
app: wordpress
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 20Gi
|
|
---
|
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
|
kind: Deployment
|
|
metadata:
|
|
name: wordpress
|
|
labels:
|
|
app: wordpress
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: wordpress
|
|
tier: frontend
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: wordpress
|
|
tier: frontend
|
|
spec:
|
|
containers:
|
|
- image: wordpress:4.8-apache
|
|
name: wordpress
|
|
env:
|
|
- name: WORDPRESS_DB_HOST
|
|
value: wordpress-mysql
|
|
- name: WORDPRESS_DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mysql-pass
|
|
key: password
|
|
ports:
|
|
- containerPort: 80
|
|
name: wordpress
|
|
volumeMounts:
|
|
- name: wordpress-persistent-storage
|
|
mountPath: /var/www/html
|
|
volumes:
|
|
- name: wordpress-persistent-storage
|
|
persistentVolumeClaim:
|
|
claimName: wp-pv-claim
|