Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Prerequisites

...

Open a command prompt from the folder that contains the YAML deployment files. Flow steps below to deploy OneList.

1. Create the Kubernetes namespace

Run the command below to create the "onelist" namespace.

kubectl create namespace onelist

2. Create ConfigMap and

...

Secret

These Kubernetes ConfigMap and secret contains Secret defines the required environment variables that will be are used by OneList services. Open the "config.yaml" in notepad and update the following fields with the correct actual value. 

  • RoleManager__MachineKey
    This is a base64 string representing a bit array of 44 bytes.
  • Database__ConnectionString
    The value is the SQL Server connection string. The name of the databases will be automatically specified by the services.
  • Smtp__UserName 
  • Smtp__Password
  • ASPNETCORE_ENVIRONMENT
    The value specifies the environment. It can be one of the following Production, Dev, QA.
  • Smtp__From
    This is the sender email address of notifications from OneList

Save the "config.yaml" file . Run then run the command below.

kubectl apply -f config.yaml

3. Create

...

the Secrete for pulling OneList

...

images

Replace placeholders in the command below and run it.

kubectl create secret docker-registry iqx.acr --docker-server=https://iqxbusiness.azurecr.io --docker-username=ACR_USERNAME --docker-password=ACR_PASSWORD --docker-email=YOUR_EMAIL_ADDRESS --namespace onelist

4. Create the TLS secrete

Run the command below.

kubectl create secret tls tls.onelist --cert YOURCERTIFICATEFILE --key YOURKEYFILE --namespace onelist

5. Deploy OneList

...

containers for the apps and services

Run the 2 commands below.

kubectl appy -f onelist6-deployment.yaml

kubectl appy -f onelist6-service.yaml

6. Create Nginx ingress service

Run the 2 commands below.

kubectl create -f ingress-nginx-controller.yaml

kubectl create -f onelist6-ingress.yaml