Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/)