Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeasashu/kubernetes-wordpress-example
Deploying a simple wordpress app on 2 pods using deployments and accessing it via services
https://github.com/codeasashu/kubernetes-wordpress-example
kubectl kubernetes kubernetes-cluster kubernetes-deployment wordpress
Last synced: 9 days ago
JSON representation
Deploying a simple wordpress app on 2 pods using deployments and accessing it via services
- Host: GitHub
- URL: https://github.com/codeasashu/kubernetes-wordpress-example
- Owner: codeasashu
- Created: 2018-10-27T12:38:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-27T19:45:58.000Z (about 6 years ago)
- Last Synced: 2024-10-06T00:41:21.937Z (3 months ago)
- Topics: kubectl, kubernetes, kubernetes-cluster, kubernetes-deployment, wordpress
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes Wordpress example
This repository is a minimal example of getting started with a wordpress latest app on kubernetes. I will be putting up a blog post soon, but for now, I am expirementing with kubernetes and got success using these.
## How to run
1. Install [Kubernetes](https://kubernetes.io/docs/setup/)
2. Create Deployment
- `cd` into directory where you have cloned this repo.
- Create a deployment
```sh
/kubernetes-wordpress-example$ kubectl create -f resources/wp-deployment.yaml
```- Check if deployment is running
```sh
/kubernetes-wordpress-example$ kubectl get deployments
```You should be able to see `wp-deployment` in the list
3. Create Service
- Create a new service by running
```sh
/kubernetes-wordpress-example$ kubectl create -f resources/wp-service.yaml
```You should be able to see `wp-app-lb` in the list
## Accessing wordpress
Once you have setup everything, you should be able to access it via the `url` of service. To obtain your service url, issue following command:
```sh
minikube service --url wp-app-lb
```Open the link and you will be able to see wordpress installation page