https://github.com/codygreen/voltstack_nginx
Deploy NGINX Plus in Volterra VoltStack via K8S manifest
https://github.com/codygreen/voltstack_nginx
k8s k8s-deployment nginx nginx-plus volterra
Last synced: about 2 months ago
JSON representation
Deploy NGINX Plus in Volterra VoltStack via K8S manifest
- Host: GitHub
- URL: https://github.com/codygreen/voltstack_nginx
- Owner: codygreen
- License: apache-2.0
- Created: 2021-04-13T14:32:09.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T23:27:59.000Z (about 3 years ago)
- Last Synced: 2025-01-14T16:28:53.129Z (over 1 year ago)
- Topics: k8s, k8s-deployment, nginx, nginx-plus, volterra
- Language: HTML
- Homepage:
- Size: 22.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploy NGINX Plus in a Volterra VoltStack
This demo will deploy NGINX Plus or NGINX OSS in a Volterra VoltStack via K8S manifest
## Download and Set KUBECONFIG variable
From VoltConsole, you need to create and download your Kubeconfig file. Check out the Volterra documentation for instructions:
https://www.volterra.io/docs/how-to/app-management/create-vk8s-obj
Once you've downloaded your Kubeconfig file, set the `KUBECONFIG` environment variable to point to this file:
```bash
export KUBECONFIG=ves__.yaml
```
## Set K8S secret with DockerHub credentials
You will need to create a DockerHub PAT for this step
```bash
kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v2/ --docker-username= --docker-password= --docker-email=
```
## Deploy NGINX Plus in VoltStack
Volterra uses VoltStack to create a virtual K8S cluster across all specified virtual sites. In this demo we will use kubectl to deploy out NGINX Plus instance from a private registry.
**Note**: You will need to change the `.spec.template.spec.containers.image` to point to your private DockerHub registry and application.
```bash
kubectl apply -f customer_edge/nginx_plus_manifest.yaml
```
If you are deploying in the Regional Edge there are some [restrictions](https://www.volterra.io/docs/how-to/app-management/create-vk8s-obj?query=restrictions) that require us to deploy NGINX in an unprivileged mode:
```bash
kubectl apply -f regional_edge/nginx_plus_manifest.yaml
```
## Build NGINX OSS Container
```bash
podman build -t nginx-demo .
```