- Must have
nvm: https://github.com/nvm-sh/nvm#installing-and-updating - Must have
cdk8s-cliinstalled:npm install -g cdk8s-cli
- You need a
kubeconfigfile to access the target cluster.
Once you have created the Kubernetes cluster using the commands described here, you need to create and deploy the K8s manifests required for an application deployment by following the steps below.
-
Use correct Node version:
nvm use
-
Install node version if you don't have one defined in
.nvmrc:nvm install
-
Install dependencies:
npm install
-
Generate K8s manifests (yaml files) for the target proxy configuration:
PROXY_CONFIG_NAME=de-to-ci npm run synth
The manifests will be created in the
distfolder. -
Deploy the K8s manifests in alphabetical order:
kubectl create ns proxy-poc kubectl apply -f dist/nginx-proxy/nginx-proxy-poc.k8s.yaml