Adds Wordpress example

pull/71/head
Robert Leenders 10 years ago
commit e5fac7510b

@ -1,36 +1,13 @@
# Wordpress Example
<<<<<<< HEAD
<<<<<<< HEAD
Welcome to the Wordpress example. It shows you how to deploy a Wordpress application using Deployment Manager.
## Prerequisites
=======
Welcome to the Wordpress example. It shows you how to deploy a Wordpress application using Deployment Manager.
## Prerequisites
>>>>>>> 320a0e9... Adds Wordpress example
=======
Welcome to the Wordpress example. It shows you how to deploy a Wordpress application using Deployment Manager.
## Prerequisites
>>>>>>> eed0dda... Updates Wordpress README for Kubernetes 1.1 release
### Deployment Manager
First, make sure DM is installed in your Kubernetes cluster by following the instructions in the top level
[README.md](../../README.md).
### Google Cloud Resources
<<<<<<< HEAD
<<<<<<< HEAD
The Wordpress application will make use of several persistent disks, which we will host on Google Cloud. To create these disks we will create a deployment using Google Cloud Deployment Manager:
=======
The Wordpress application will make use of several persistent disks, which we will host on Google Cloud. To create these disks we will create a deployment using Google Cloud Deployment Manager:
>>>>>>> 320a0e9... Adds Wordpress example
=======
The Wordpress application will make use of several persistent disks, which we will host on Google Cloud. To create these disks we will create a deployment using Google Cloud Deployment Manager:
>>>>>>> f7940f1... Updates Wordpress example
```gcloud deployment-manager deployments create wordpress-resources --config wordpress-resources.yaml```
where `wordpress-resources.yaml` looks as follows:
@ -50,29 +27,12 @@ resources:
```
### Privileged containers
<<<<<<< HEAD
<<<<<<< HEAD
To use NFS we need to be able to launch privileged containers. Since the release of Kubernetes 1.1 privileged container support is enabled by default. If your Kubernetes cluster doesn't support privileged containers you need to manually change this by setting the flag at `kubernetes/saltbase/pillar/privilege.sls` to true.
### NFS Library
Mounting NFS volumes requires NFS libraries. Since the release of Kubernetes 1.1 the NFS libraries are installed by default. If they are not installed on your Kubernetes cluster you need to install them manually.
## Understanding the Wordpress example template
=======
To use NFS we need to be able to launch privileged containers. If your Kubernetes cluster doesn't support this you can either manually change this in every Kubernetes minion or you could set the flag at `kubernetes/saltbase/pillar/privilege.sls` to true and (re)launch your Kubernetes cluster. Once Kubernetes 1.1 releases this should be enabled by default.
=======
To use NFS we need to be able to launch privileged containers. Since the release of Kubernetes 1.1 privileged container support is enabled by default. If your Kubernetes cluster doesn't support privileged containers you need to manually change this by setting the flag at `kubernetes/saltbase/pillar/privilege.sls` to true.
>>>>>>> eed0dda... Updates Wordpress README for Kubernetes 1.1 release
### NFS Library
Mounting NFS volumes requires NFS libraries. Since the release of Kubernetes 1.1 the NFS libraries are installed by default. If they are not installed on your Kubernetes cluster you need to install them manually.
## Understanding the Wordpress example template
<<<<<<< HEAD
>>>>>>> 320a0e9... Adds Wordpress example
=======
>>>>>>> eed0dda... Updates Wordpress README for Kubernetes 1.1 release
Let's take a closer look at the template used by the Wordpress example. The Wordpress application consists of 4 microservices: an nginx service, a wordpress-php service, a MySQL service, and an NFS service. The architecture looks as follows:
![Architecture](architecture.png)
@ -81,26 +41,13 @@ Let's take a closer look at the template used by the Wordpress example. The Word
The template contains the following variables:
```
<<<<<<< HEAD
<<<<<<< HEAD
{% set PROPERTIES = properties or {} %}
{% set PROJECT = PROPERTIES['project'] or 'dm-k8s-testing' %}
{% set NFS_SERVER = PROPERTIES['nfs-server'] or {} %}
=======
{% set PROJECT = properties['project'] or 'dm-k8s-testing' %}
{% set NFS_SERVER = properties['nfs-server'] or {} %}
>>>>>>> 320a0e9... Adds Wordpress example
=======
{% set PROPERTIES = properties or {} %}
{% set PROJECT = PROPERTIES['project'] or 'dm-k8s-testing' %}
{% set NFS_SERVER = PROPERTIES['nfs-server'] or {} %}
>>>>>>> f7940f1... Updates Wordpress example
{% set NFS_SERVER_IP = NFS_SERVER['ip'] or '10.0.253.247' %}
{% set NFS_SERVER_PORT = NFS_SERVER['port'] or 2049 %}
{% set NFS_SERVER_DISK = NFS_SERVER['disk'] or 'nfs-disk' %}
{% set NFS_SERVER_DISK_FSTYPE = NFS_SERVER['fstype'] or 'ext4' %}
<<<<<<< HEAD
<<<<<<< HEAD
{% set NGINX = PROPERTIES['nginx'] or {} %}
{% set NGINX_PORT = 80 %}
{% set NGINX_REPLICAS = NGINX['replicas'] or 2 %}
@ -108,26 +55,6 @@ The template contains the following variables:
{% set WORDPRESS_PHP_REPLICAS = WORDPRESS_PHP['replicas'] or 2 %}
{% set WORDPRESS_PHP_PORT = WORDPRESS_PHP['port'] or 9000 %}
{% set MYSQL = PROPERTIES['mysql'] or {} %} {% set MYSQL_PORT = MYSQL['port'] or 3306 %} {% set MYSQL_PASSWORD = MYSQL['password'] or 'mysql-password' %} {% set MYSQL_DISK = MYSQL['disk'] or 'mysql-disk' %} {% set MYSQL_DISK_FSTYPE = MYSQL['fstype'] or 'ext4' %}
=======
{% set NGINX = properties['nginx'] or {} %}
=======
{% set NGINX = PROPERTIES['nginx'] or {} %}
>>>>>>> f7940f1... Updates Wordpress example
{% set NGINX_PORT = 80 %}
{% set NGINX_REPLICAS = NGINX['replicas'] or 2 %}
{% set WORDPRESS_PHP = PROPERTIES['wordpress-php'] or {} %}
{% set WORDPRESS_PHP_REPLICAS = WORDPRESS_PHP['replicas'] or 2 %}
{% set WORDPRESS_PHP_PORT = WORDPRESS_PHP['port'] or 9000 %}
<<<<<<< HEAD
{% set MYSQL = properties['mysql'] or {} %}
{% set MYSQL_PORT = MYSQL['port'] or 3306 %}
{% set MYSQL_PASSWORD = MYSQL['password'] or 'mysql-password' %}
{% set MYSQL_DISK = MYSQL['disk'] or 'mysql-disk' %}
{% set MYSQL_DISK_FSTYPE = MYSQL['fstype'] or 'ext4' %}
>>>>>>> 320a0e9... Adds Wordpress example
=======
{% set MYSQL = PROPERTIES['mysql'] or {} %} {% set MYSQL_PORT = MYSQL['port'] or 3306 %} {% set MYSQL_PASSWORD = MYSQL['password'] or 'mysql-password' %} {% set MYSQL_DISK = MYSQL['disk'] or 'mysql-disk' %} {% set MYSQL_DISK_FSTYPE = MYSQL['fstype'] or 'ext4' %}
>>>>>>> f7940f1... Updates Wordpress example
```
### Nginx service
@ -135,27 +62,7 @@ The nginx service is a replicated service with 2 replicas:
```
- name: nginx
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> 320a0e9... Adds Wordpress example
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> ebf3a33... Change hardcoded type urls from leendersr/deployment-manager to kubernetes/deployment-manager
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> 77312ee... Updates README to link to master/templates
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> af6b5a7... Updates README and adds clain-name property to the NFS type
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> be9b2a3... Changes absolute url from leendersr/deployment-manager back to kubernetes/deployment-manager
properties:
service_port: {{ NGINX_PORT }}
container_port: {{ NGINX_PORT }}
@ -175,27 +82,7 @@ The wordpress-php service is a replicated service with 2 replicas:
```
- name: wordpress-php
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> 320a0e9... Adds Wordpress example
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> ebf3a33... Change hardcoded type urls from leendersr/deployment-manager to kubernetes/deployment-manager
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> 77312ee... Updates README to link to master/templates
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> af6b5a7... Updates README and adds clain-name property to the NFS type
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> be9b2a3... Changes absolute url from leendersr/deployment-manager back to kubernetes/deployment-manager
properties:
service_name: wordpress-php
service_port: {{ WORDPRESS_PHP_PORT }}
@ -218,19 +105,7 @@ The MySQL service is a replicated service with a single replica:
```
- name: mysql
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> 320a0e9... Adds Wordpress example
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> ebf3a33... Change hardcoded type urls from leendersr/deployment-manager to kubernetes/deployment-manager
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> 77312ee... Updates README to link to master/templates
properties:
service_port: {{ MYSQL_PORT }}
container_port: {{ MYSQL_PORT }}
@ -244,50 +119,12 @@ The MySQL service is a replicated service with a single replica:
gcePersistentDisk:
pdName: {{ MYSQL_DISK }}
fsType: {{ MYSQL_DISK_FSTYPE }}
<<<<<<< HEAD
<<<<<<< HEAD
```
=======
```
>>>>>>> 320a0e9... Adds Wordpress example
=======
```
>>>>>>> f7940f1... Updates Wordpress example
### NFS service
The NFS service is a replicated service with a single replica that is available as a type:
```
<<<<<<< HEAD
- name: nfs-server
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> 320a0e9... Adds Wordpress example
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> ebf3a33... Change hardcoded type urls from leendersr/deployment-manager to kubernetes/deployment-manager
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> 77312ee... Updates README to link to master/templates
properties:
service_port: {{ NFS_SERVER_PORT }}
container_port: {{ NFS_SERVER_PORT }}
replicas: 1 # Has to be 1 because of the persistent disk
image: jsafrane/nfs-data
privileged: true
cluster_ip: {{ NFS_SERVER_IP }}
volumes:
- mount_path: /mnt/data
gcePersistentDisk:
pdName: {{ NFS_SERVER_DISK }}
fsType: {{ NFS_SERVER_DISK_FSTYPE }}
<<<<<<< HEAD
<<<<<<< HEAD
=======
- name: nfs
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/nfs/v1/nfs.jinja
properties:
@ -295,28 +132,13 @@ The NFS service is a replicated service with a single replica that is available
port: {{ NFS_SERVER_PORT }}
disk: {{ NFS_SERVER_DISK }}
fstype: {{NFS_SERVER_DISK_FSTYPE }}
>>>>>>> af6b5a7... Updates README and adds clain-name property to the NFS type
```
=======
```
>>>>>>> 320a0e9... Adds Wordpress example
=======
```
>>>>>>> f7940f1... Updates Wordpress example
## Deploying Wordpress
We can now deploy Wordpress using:
```
<<<<<<< HEAD
<<<<<<< HEAD
dm deploy examples/wordpress/wordpress.yaml
=======
dm deploy examples/wordpress/wordpress.jinja
>>>>>>> 320a0e9... Adds Wordpress example
=======
dm deploy examples/wordpress/wordpress.yaml
>>>>>>> ef7e062... Fix typo, we want to deploy wordpress.yaml not .jinja
```
where `wordpress.yaml` looks as follows:

@ -1,16 +1,7 @@
.PHONY: all build push clean
<<<<<<< HEAD
<<<<<<< HEAD
DOCKER_REGISTRY = gcr.io
PREFIX = $(DOCKER_REGISTRY)/$(PROJECT)
=======
PREFIX = gcr.io/$(PROJECT)
>>>>>>> 320a0e9... Adds Wordpress example
=======
DOCKER_REGISTRY = gcr.io
PREFIX = $(DOCKER_REGISTRY)/$(PROJECT)
>>>>>>> a893ea4... Updates Makefile to use generic Docker registry
IMAGE = nginx
TAG = latest
@ -22,21 +13,11 @@ build:
docker build -t $(PREFIX)/$(IMAGE):$(TAG) $(DIR)
push: build
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> a893ea4... Updates Makefile to use generic Docker registry
ifeq ($(DOCKER_REGISTRY),gcr.io)
gcloud docker push $(PREFIX)/$(IMAGE):$(TAG)
else
docker push $(PREFIX)/$(IMAGE):$(TAG)
endif
<<<<<<< HEAD
=======
gcloud docker push $(PREFIX)/$(IMAGE):$(TAG)
>>>>>>> 320a0e9... Adds Wordpress example
=======
>>>>>>> a893ea4... Updates Makefile to use generic Docker registry
clean:
docker rmi $(PREFIX)/$(IMAGE):$(TAG)

@ -1,11 +1,4 @@
<<<<<<< HEAD
<<<<<<< HEAD
# Google Cloud Deployment Manager template
=======
>>>>>>> 320a0e9... Adds Wordpress example
=======
# Google Cloud Deployment Manager template
>>>>>>> 2df5f72... Improves readability
resources:
- name: nfs-disk
type: compute.v1.disk

@ -1,23 +1,10 @@
<<<<<<< HEAD
<<<<<<< HEAD
{% set PROPERTIES = properties or {} %}
{% set PROJECT = PROPERTIES['project'] or 'dm-k8s-testing' %}
{% set NFS_SERVER = PROPERTIES['nfs-server'] or {} %}
=======
{% set PROJECT = properties['project'] or 'dm-k8s-testing' %}
{% set NFS_SERVER = properties['nfs-server'] or {} %}
>>>>>>> 320a0e9... Adds Wordpress example
=======
{% set PROPERTIES = properties or {} %}
{% set PROJECT = PROPERTIES['project'] or 'dm-k8s-testing' %}
{% set NFS_SERVER = PROPERTIES['nfs-server'] or {} %}
>>>>>>> f7940f1... Updates Wordpress example
{% set NFS_SERVER_IP = NFS_SERVER['ip'] or '10.0.253.247' %}
{% set NFS_SERVER_PORT = NFS_SERVER['port'] or 2049 %}
{% set NFS_SERVER_DISK = NFS_SERVER['disk'] or 'nfs-disk' %}
{% set NFS_SERVER_DISK_FSTYPE = NFS_SERVER['fstype'] or 'ext4' %}
<<<<<<< HEAD
<<<<<<< HEAD
{% set NGINX = PROPERTIES['nginx'] or {} %}
{% set NGINX_PORT = 80 %}
{% set NGINX_REPLICAS = NGINX['replicas'] or 2 %}
@ -25,49 +12,11 @@
{% set WORDPRESS_PHP_REPLICAS = WORDPRESS_PHP['replicas'] or 2 %}
{% set WORDPRESS_PHP_PORT = WORDPRESS_PHP['port'] or 9000 %}
{% set MYSQL = PROPERTIES['mysql'] or {} %}
=======
{% set NGINX = properties['nginx'] or {} %}
=======
{% set NGINX = PROPERTIES['nginx'] or {} %}
>>>>>>> f7940f1... Updates Wordpress example
{% set NGINX_PORT = 80 %}
{% set NGINX_REPLICAS = NGINX['replicas'] or 2 %}
{% set WORDPRESS_PHP = PROPERTIES['wordpress-php'] or {} %}
{% set WORDPRESS_PHP_REPLICAS = WORDPRESS_PHP['replicas'] or 2 %}
{% set WORDPRESS_PHP_PORT = WORDPRESS_PHP['port'] or 9000 %}
<<<<<<< HEAD
{% set MYSQL = properties['mysql'] or {} %}
>>>>>>> 320a0e9... Adds Wordpress example
=======
{% set MYSQL = PROPERTIES['mysql'] or {} %}
>>>>>>> f7940f1... Updates Wordpress example
{% set MYSQL_PORT = MYSQL['port'] or 3306 %}
{% set MYSQL_PASSWORD = MYSQL['password'] or 'mysql-password' %}
{% set MYSQL_DISK = MYSQL['disk'] or 'mysql-disk' %}
{% set MYSQL_DISK_FSTYPE = MYSQL['fstype'] or 'ext4' %}
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
resources:
- name: nfs
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/nfs/v1/nfs.jinja
properties:
ip: {{ NFS_SERVER_IP }}
port: {{ NFS_SERVER_PORT }}
disk: {{ NFS_SERVER_DISK }}
fstype: {{NFS_SERVER_DISK_FSTYPE }}
- name: nginx
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
=======
>>>>>>> 2df5f72... Improves readability
imports:
- path: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
>>>>>>> 3ed2616... Creates an NFS type
resources:
- name: nfs
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/nfs/v1/nfs.jinja
@ -77,20 +26,7 @@ resources:
disk: {{ NFS_SERVER_DISK }}
fstype: {{NFS_SERVER_DISK_FSTYPE }}
- name: nginx
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> 320a0e9... Adds Wordpress example
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> ebf3a33... Change hardcoded type urls from leendersr/deployment-manager to kubernetes/deployment-manager
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> 65b3c7e... Changes the Wordpress template so that it uses PersistentVolumeClaims
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> be9b2a3... Changes absolute url from leendersr/deployment-manager back to kubernetes/deployment-manager
properties:
service_port: {{ NGINX_PORT }}
container_port: {{ NGINX_PORT }}
@ -99,33 +35,10 @@ resources:
image: gcr.io/{{ PROJECT }}/nginx:latest
volumes:
- mount_path: /var/www/html
<<<<<<< HEAD
<<<<<<< HEAD
persistentVolumeClaim:
claimName: nfs
- name: mysql
<<<<<<< HEAD
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
nfs:
server: {{ NFS_SERVER_IP }}
path: /
- name: mysql
<<<<<<< HEAD
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> 320a0e9... Adds Wordpress example
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> ebf3a33... Change hardcoded type urls from leendersr/deployment-manager to kubernetes/deployment-manager
=======
persistentVolumeClaim:
claimName: nfs
- name: mysql
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> 65b3c7e... Changes the Wordpress template so that it uses PersistentVolumeClaims
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> be9b2a3... Changes absolute url from leendersr/deployment-manager back to kubernetes/deployment-manager
properties:
service_port: {{ MYSQL_PORT }}
container_port: {{ MYSQL_PORT }}
@ -140,23 +53,7 @@ resources:
pdName: {{ MYSQL_DISK }}
fsType: {{ MYSQL_DISK_FSTYPE }}
- name: wordpress-php
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> 320a0e9... Adds Wordpress example
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/types/replicatedservice/v2/replicatedservice.py
>>>>>>> ebf3a33... Change hardcoded type urls from leendersr/deployment-manager to kubernetes/deployment-manager
=======
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> 65b3c7e... Changes the Wordpress template so that it uses PersistentVolumeClaims
=======
type: https://raw.githubusercontent.com/kubernetes/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
>>>>>>> be9b2a3... Changes absolute url from leendersr/deployment-manager back to kubernetes/deployment-manager
properties:
service_name: wordpress-php
service_port: {{ WORDPRESS_PHP_PORT }}
@ -170,16 +67,5 @@ resources:
value: mysql-service
volumes:
- mount_path: /var/www/html
<<<<<<< HEAD
<<<<<<< HEAD
persistentVolumeClaim:
claimName: nfs
=======
nfs:
server: {{ NFS_SERVER_IP }}
path: /
>>>>>>> 320a0e9... Adds Wordpress example
=======
persistentVolumeClaim:
claimName: nfs
>>>>>>> 65b3c7e... Changes the Wordpress template so that it uses PersistentVolumeClaims

@ -1,21 +1,9 @@
info:
title: Wordpress
description: |
<<<<<<< HEAD
<<<<<<< HEAD
Defines a Wordpress website by defining four replicated services: an NFS service, an nginx service, a wordpress-php service, and a MySQL service.
The nginx service and the Wordpress-php service both use NFS to share files.
=======
Defines a Wordpress website by defining four replicatedservices: an NFS service, an NGINX service, an Wordpress-PHP service, and a MySQL service.
The NGINX service and the Wordpress-fpm service both use NFS to share files.
>>>>>>> 320a0e9... Adds Wordpress example
=======
Defines a Wordpress website by defining four replicated services: an NFS service, an nginx service, a wordpress-php service, and a MySQL service.
The nginx service and the Wordpress-php service both use NFS to share files.
>>>>>>> f337d6c... Fix spelling
properties:
project:

Loading…
Cancel
Save