Versions Compared

Key

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

...

As init container for K8s:

Code Block
titleSample deployment
... 
kind: Deployment
metadata:
  ...
spec:
...
  template:
  ...
    spec:
      initContainers:
        - name: cert-service-client
          image: nexus3.onap.org:10001/onap/org.onap.aaf.certservice.aaf-certservice-client:latest
          imagePullPolicy: Always
          env:
            - name: REQUEST_URL
              value: http://aaf-cert-service-service:8080/v1/certificate/
            - name: REQUEST_TIMEOUT
              value: "1000"
            - name: OUTPUT_PATH
              value: /var/log/certs
            - name: CA_NAME
              value: TEST
            - name: COMMON_NAME
              value: onap.org
            - name: ORGANIZATION
              value: Linux-Foundation
            - name: ORGANIZATION_UNIT
              value: ONAP
            - name: LOCATION
              value: San-Francisco
            - name: STATE
              value: California
            - name: COUNTRY
              value: US
            - name: SANS
              value: gerrit.onap.org:test.onap.org:onap.com
          volumeMounts:
            - mountPath: /var/log/certs
              name: certs
		...


Client's exiting codes:

CodeInformation
0

Success

1Invalid client configuration
2Invalid CSR data 
3Failed key pair generation
4Failed CSR generation
5API return unsuccessful response
6Problem with Http Client connection
7Failed PKCS12 conversion
8Failed Private Key to PEM Encoding

...