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

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

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





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




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |