Bootstrap FreeKB - OpenShift - List SSL certificates in a deployment container args (arguments)
OpenShift - List SSL certificates in a deployment container args (arguments)

Updated:   |  OpenShift articles

If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.

A deployment can use one or more SSL certificates:

This article describes how to list the SSL certificates in a deployments container args

The oc get deployments command can be used to list the deployments in a namespace

~]# oc get deployments --namespace foo
NAME      READY   UP-TO-DATE   AVAILABLE   AGE
app001    1/1     1            1           8d

 

The -o yaml or -o json options can be used to display more information about the deployment. In this example, app001 is a Java application with SSL certificates stored in /usr/local/secure/truststore.p12 in the container.

~]# oc get deployment/app001 --namespace foo -o yaml
spec:
  template:
    spec:
      containers:
      - env:
        - name: JAVA_OPTS
          value: -Djavax.net.ssl.trustStore=/usr/local/secure/truststore.p12

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 01d3ab in the box below so that we can be sure you are a human.