Deploy the application with Helm
With the application Docker image pushed to the IBM Cloud private container registry, you can now proceed to create a Kubernetes deployment pointing to that image.
Helm is a tool to manage Kubernetes applications through Helm Charts, which help define, install, and upgrade even the most complex Kubernetes application. Initialize Helm by running the below command in your cluster
helm init
To upgrade helm, run this command
helm init --upgrade
Change to the chart directory:
cd chart\<YOUR APP NAME>
- Run the install command:
WindowsBash
helm install . --name %MYPROJECT% --set image.repository=%MYREGISTRY%/%MYNAMESPACE%/%MYPROJECT% --debug
helm install . --name $MYPROJECT --set image.repository=$MYREGISTRY/$MYNAMESPACE/$MYPROJECT --debug
- Run the command below to identity the public port the service is listening on. The port is a 5-digit number (e.g., 31569) under
PORT(S)
.WindowsBashkubectl get service %MYPROJECT%-service
kubectl get service $MYPROJECT-service
- Run the below command and pick the public IP of one of the workers. Replace
<CLUSTER_NAME>
with the cluster assigned to you:WindowsBashibmcloud ks workers <CLUSTER_NAME>
ibmcloud ks workers <CLUSTER_NAME>
- Access the application at
http://worker-ip-address:portnumber/
.