Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1beta3
- kind: ReplicationController
- metadata:
- labels:
- name: wordpress
- name: wordpress
- spec:
- replicas: 1
- selector:
- name: wordpress
- template:
- metadata:
- labels:
- name: wordpress
- spec:
- containers:
- - image: wordpress
- name: wordpress
- env:
- - name: WORDPRESS_DB_PASSWORD
- value: yourpassword
- ports:
- - containerPort: 80
- hostPort: 80
- volumeMounts:
- - name: data
- mountPath: /var/www/html
- volumes:
- - name: data
- nfs:
- server: centos-master
- path: /data/wordpress
- readOnly: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement