Deployment of CNCC Core

This procedure describes the steps to deploy CNCC Core. The below steps need to be executed from a server which has access to Kubectl and helm commands.

Table 5-2 CNCC Core Deployment

Step No. Procedure Description
1.

Search helm chart Execute the following command to search helm chart.
helm search <deployment_name>
Example: helm search cncc-core
 
NAME                 CHART VERSION  APP VERSION  DESCRIPTION
	
ocspf-helm-repo/cncc-core 1.1.0      1.0        A Helm chart for CNC Console
2.

Prepare custom-cncc-core_values.yaml file Prepare a custom-cncc-core_values.yaml file with the required parameter information.

Note:

  • The user needs to update the "domain" in the custom-cncc-core_values.yaml file per the name of cluster (default value of domain is "svc.cluster.local"). If the cluster name is XYZ then domain must be svc.XYZ.
  • The user needs to update the "clusterDomain" in the custom-cncc-core_values.yaml file per the name of cluster (default value of domain is "cluster.local"). If the cluster name is XYZ then domain must be XYZ.
3.

Deploy CNCC Core

Installation using helm repository

Execute the following command:

helm install <helm-repo> -f custom-cncc-core_values.yaml --name <deployment_name> 
--namespace <namespace_name> --version <helm_version>			 
Where:

helm-repo: repository name where the helm images, charts are stored

values: helm configuration file which needs to be updated based on the docker registry

deployment_name and namespace_name: depends on customer configuration

Example:
helm install ocscp-helm-repo/ocscp -f custom-cncc-core_values.yaml --name cncc-core
      --namespace cncc --version 1.1.0 

Installation using helm tar

Execute the following command:

helm install -f custom-cncc-core_values.yaml --name cncc-core --namespace <namespace>
      <chartpath>./<chart>.tgz 
4.

Check repository status Execute following command to check the deployment status.

helm status <deployment_name>

5.

Check service status Check if all the services are deployed and running:
kubectl -n <namespace_name> get services  

Example: $ kubectl -n cncc get services
cncc-core-cmservice ClusterIP 10.233.13.43 <none> 8442/TCP 6m13s
cncc-core-ingress-gateway LoadBalancer 10.233.11.14 10.75.182.79 8080:31417/TCP,5701:30487/TCP 6m13s
6.

Check pod status Check if all the pods are up and running by executing following command:

kubectl -n <namespace_name> get pods
Example:$ kubectl -n cncc get pods
NAME READY STATUS RESTARTS AGE
cncc-core-cmservice-7f8b57c5bf-p4gvw 1/1 0 0 6m18s
cncc-core-ingress-gateway-5bfb8789cd-wls5p 1/1 0 0 6m18s