Versions Compared

Key

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

cd kubernetes/appc
mkdir -p resources/certs

copy org.onap.appc.p12 file to resources/certs

Update the Configmap

Add the following to the end of templates/configmap.yaml

---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.fullname" . }}-certs
namespace: {{ include "common.namespace" . }}
labels:
app: {{ include "common.name" . }}-preload
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
{{ tpl (.Files.Glob "resources/certs/*").AsConfig . | indent 2 }}

Update the statefulset.yaml

Add the following lines in templates/statefulset.yaml under volumeMounts:

- mountPath: /opt/onap/appc/data/stores/org.onap.appc.p12
name: {{ include "common.name" .}}-certs
subPath: org.onap.appc.p12


Add the following lines in templates/deployment.yaml under volumes:

- name : {{ include "common.name" . }}-certs
configMap:
name: {{ include "common.fullname" . }}-certs