Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swinton/k8s-guestbook
An example guestbook running on Kubernetes, in two separate namespaces, staging and production, managed through kustomization layers and flux.
https://github.com/swinton/k8s-guestbook
guestbook k8s k8s-namespaces
Last synced: about 1 month ago
JSON representation
An example guestbook running on Kubernetes, in two separate namespaces, staging and production, managed through kustomization layers and flux.
- Host: GitHub
- URL: https://github.com/swinton/k8s-guestbook
- Owner: swinton
- License: isc
- Created: 2020-03-02T23:16:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T21:09:22.000Z (over 4 years ago)
- Last Synced: 2024-10-30T04:28:58.224Z (3 months ago)
- Topics: guestbook, k8s, k8s-namespaces
- Language: Dockerfile
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `k8s-guestbook`
An example guestbook running on Kubernetes, in two separate namespaces, `staging` and `production`, managed through kustomization layers.
## Prequisites
- Setup [Minikube](https://github.com/kubernetes/minikube).
## Setup
### Namespaces
```shell
kubectl apply -k ./k8s-config/namespaces
```### Staging
```shell
kubectl apply -k ./k8s-config/staging
```### Production
```shell
kubectl apply -k ./k8s-config/production
```## Accessing the services
### Staging
```shell
minikube service frontend --namespace=staging --url
```### Production
```shell
minikube service frontend --namespace=production --url
```## Cleanup
### Staging
```shell
kubectl delete -k ./k8s-config/staging
```### Production
```shell
kubectl delete -k ./k8s-config/production
```## Resources
- [Example: Deploying PHP Guestbook application with Redis](https://kubernetes.io/docs/tutorials/stateless-application/guestbook/#cleaning-up)
- [Declarative Management of Kubernetes Objects Using Kustomize](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/)