Skip to content

CDNetworks Documentation

Adding and Deploying Applications Using a Wizard permalink

  1. In the left pane of the portal, click Applications.
  2. At the top right of the Applications page, click the + Add New Application button.

  1. When prompted, click Use a wizard.

  2. Complete the configure fields in the first step of the wizard.

FieldsDescription
Application NameEnter a name that helps you identify this application.
NamespaceSpecify a Kubernetes namespace created in the ECP clusters for your account.
LabelsRead-only field that shows the default label used to identify pods. The ECP uses "app" as the key and the application name you entered as the value.
Pod ControllerSelect a Kubernetes workload controller to control your pods. Choices are:
  • StatefulSet = select this option if your application requires persistent storage.
  • Deployment.
Image Pull SecretIf your application will run private image(s), specify an ImagePullSecret that will be used to authenticate with your registry. If an ImagePullSecret is not specified or the specified ImagePullSecret is not correct, the image pulling and application deployment operations will fail.
VolumesThis field is available when Pod Controller is set to StatefulSet. Use this field to add one or more volumes by defining their name, storage class, and capacity.
ContainerSpecify the container name, docker image and tag, CPU and memory resources, environment variables, and volume mounts.
Use Advanced Settings to define the following parameters:
  • Command = entrypoint array in JSON or YAML format. If omitted, the docker image's ENTRYPOINT is used. Variable references $(VAR_NAME) are expanded using the container's environment.
  • Args = arguments to the entrypoint in JSON or YAML format. If omitted, the docker image's CMD is used. Variable references are expanded using the container's environment.
  • Image Pull Policy = control how Docker behaves when pulling images. Select from Always, Never, or IfNotPresent. Defaults to Always
  • Liveness Probe = periodic probe of container liveliness. If the probe fails, the container will be restarted.
  • Readiness Probe = periodic probe of container service readiness. If the probe fails, the container will be removed from service endpoints.

Note: You can add and configure multiple containers and couple them together in a pod.

  1. At the top right of the wizard, click > Next.
  2. Select whether to expose your application using ECP defined layer 4 load balancer or the public network interfaces of a pod, and then complete the remaining fields based on your selection.

Exposing via Layer 4 Load Balancer permalink

FieldsDescription
Name of load balancerRead-only field that shows the name of the load balancer. Default to same as "Application Name"
Backend SelectorRead-only field that selects pods to sit behind the layer 4 load balancer based on labels. The pods are what you specified in the first wizard step.
ListenersComplete the following fields:
  • Name = enter the name of the listener.
  • Listener Port = enter the number of the port on which the layer 4 load balancer must listen.
  • Backend Port = read-only field that shows the number of the backend pod port that receives traffic forwarded by the layer 4 load balancer. This is the same value entered for the Listener Port.
  • Protocol = select either TCP or UDP.
  • Scheduler = select the load-balancing algorithm used to make load-balancing decisions. Choices are Round Robin (default), Least Connection and Source Hash.
  • Health Check = select whether periodic health checks should be performed on backend pods. The load balancer will remove a pod that fails the health check.

Note: You can add or remove listeners by clicking the + Add Listener button or the Remove button.

Exposing via the Public Network Interfaces of a Pod permalink

FieldsDescription
Network interfacesDrag the controls to the right to expose the application via a public IPv4 network, IPv6 network, or both.
  1. At the top right of the wizard, click > Next.
  2. Select whether to distribute your application to ECP edge PoPs by Region or PoP, and then complete the remaining fields based on your selection.

Distribute per region permalink

FieldsDescription
RegionSelect an ECP Region where the application is to be distributed. The ECP will distribute your desired number of application instances across PoPs in the selected region automatically.
Replicas per regionSelect the total number of application instances you want to distribute within the selected ECP Region.

Distribute per PoP permalink

FieldsDescription
PoPSelect one or more ECP PoPs where you want to run your application.
Replicas per PoPSelect the number of application instances you want to run in each of the selected ECP PoPs.

Note: You can add or remove targets by clicking the + Add Target button or the garbage can icon.

  1. At the top right of the wizard, click > Next.

  2. Review your inputs from the previous steps. If you need to change them, click Previous to return to the appropriate step, make your changes, and then click Next until you return to the Review step.

  3. When you are satisfied with your inputs, click Submit & Deploy.

Note: The application deployment process will take a while, the length depending on the size of container images to be downloaded, the target locations, and the number of expected instances, etc. Once the application is deployed, Deployed appears as its status on the Applications page. To check the status and other details, use the applications list view and detail view. After the application is deployed, you can check application instances. If you encounter a problem, try to troubleshoot.