Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.03 KB

File metadata and controls

36 lines (31 loc) · 1.03 KB

Prerequisites

Prepare the Kubernetes cluster for an application deployment

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 dist folder.

  • Deploy the K8s manifests in alphabetical order:

    kubectl create ns proxy-poc
    kubectl apply -f dist/nginx-proxy/nginx-proxy-poc.k8s.yaml