Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Add MAILER_* envs
Browse files Browse the repository at this point in the history
  • Loading branch information
chepurko committed Mar 26, 2017
1 parent a3ce459 commit be58d5b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ Actually, **k8s LEMP Stack** should be able to serve as your own personal web se
* `.metadata.name|namespace`
* Both `.host\*` values
* `.spec.rules[0].http.paths.backend.serviceName`

* Create your new namespace
```bash
$ kubectl apply -f wp-bc/00-namespace.yaml
namespace "wp-bc" created
```

* Create a new `Secret` for your new DB user and save it for the next step
```bash
Expand Down Expand Up @@ -153,5 +159,11 @@ Actually, **k8s LEMP Stack** should be able to serve as your own personal web se
$ kubectl apply -f gce-volumes.yaml
```

* Apply the YAMLs for you new site and add the IP address of the NGINX `LoadBalancer` Service you originally created to your domain's DNS settings.
```bash
$ kubectl apply -f wp-dd/wp-dd-Deployment.yaml
$ kubectl apply -f wp-dd/notls-Ingress.yaml
```

## Acknowledgements
This project was inspired by the official Kubernetes [Wordpress + MySQL sample](https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd/ "Persistent Installation of MySQL and WordPress on Kubernetes") and builds on it with the various other official Docker images and Kubernetes applications mentioned previously.
6 changes: 6 additions & 0 deletions wp/wp-be-Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ spec:
# secretKeyRef:
# name: mariadb-pass-wp-be-s
# key: mariadb-pass-wp-be-s.txt
- name: MAILER_ADMIN_EMAIL
value: [email protected]
- name: MAILER_APP_PASSWORD
value: googleapppassword
- name: MAILER_YOUR_NAME
value: name
#optional since nginx can see WP on localhost
#ports:
#- containerPort: 9000
Expand Down

0 comments on commit be58d5b

Please sign in to comment.