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

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

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 .
```