Versions Compared

Key

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

...

Code Block
kubectl create secret tls acexpresssecret --key="tls.key" --cert="tls.crt" --namespace ac5tmtĀ 
Expand
titleClick Here For More Details

1. kubectl create secret tls

  • kubectl: The Kubernetes command-line tool used to interact with the Kubernetes API.

  • create secret tls: Tells Kubernetes to create a secret of type tls. TLS secrets are used to store SSL/TLS certificates and keys.

2. acexpresssecret

  • The name of the secret. This will be referenced in your deployments or services to enable secure communications (like HTTPS).

3. --key="tls.key"

  • Specifies the path to the private key file (tls.key). This file contains the private key used for SSL/TLS encryption.

4. --cert="tls.crt"

  • Specifies the path to the certificate file (tls.crt). This file contains the public certificate that corresponds to the private key.

5. --namespace ac5tmt

  • Specifies the namespace (ac5tmt) in which the secret will be created. Namespaces help organize resources in a cluster.

This will create a secret in the namespace

...

Go to services, Ingress, and get the external IP

...

Bind the IP with DNS ac4tmtac5tmt.adeptia.com

Example: https://acexpress-ist-poc.adeptia.com/Portal2/#/home

...