X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fhelm%2Faaf%2Ftemplates%2Faaf-hello.yaml;fp=auth%2Fhelm%2Faaf%2Ftemplates%2Faaf-hello.yaml;h=b11365d2c9076175d19f459a075cc5ff654a9948;hb=5451a509e10530c62c8939f0bbdb294f3e6c7286;hp=0000000000000000000000000000000000000000;hpb=5ed77b98dbe9107431d2dfd61d331f78b009503b;p=aaf%2Fauthz.git diff --git a/auth/helm/aaf/templates/aaf-hello.yaml b/auth/helm/aaf/templates/aaf-hello.yaml new file mode 100644 index 00000000..b11365d2 --- /dev/null +++ b/auth/helm/aaf/templates/aaf-hello.yaml @@ -0,0 +1,72 @@ +### +### AAF-HELLO +### +kind: Service +apiVersion: v1 +metadata: + name: aaf-hello +spec: + selector: + app: aaf-hello + type: NodePort + ports: + - name: aaf-hello + protocol: TCP + port: 8130 + NodePort: 30086 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: aaf-hello + labels: + app: aaf-hello +spec: + replicas: 1 + selector: + matchLabels: + app: aaf-hello + template: + metadata: + labels: + app: aaf-hello + spec: + volumes: + # Use this Pod Sharing dir to declare various States of starting + - name: {{ .Chart.Name }}-config-vol + emptyDir: {} + initContainers: + - name: {{ .Chart.Name }}-config-container + image: {{ .Values.image.repository }}onap/aaf/aaf_config:{{ .Values.image.version }} + imagePullPolicy: IfNotPresent + volumeMounts: + - mountPath: "/opt/app/osaaf" + name: {{ .Chart.Name }}-config-vol + env: + - name: AAF_ENV + value: "{{ .Values.cadi.aaf_env }}" + - name: AAF_REGISTER_AS + value: "aaf-hello" + - name: AAF_LOCATOR_AS + value: "aaf-locate" + - name: LATITUDE + value: "{{ .Values.cadi.cadi_latitude }}" + - name: LONGITUDE + value: "{{ .Values.cadi.cadi_longitude }}" + - name: CASS_HOST + value: "aaf-cass" + containers: +### +### AAF-HELLO +### + - name: {{ .Chart.Name }}-hello + image: {{ .Values.image.repository }}onap/aaf/aaf_hello:{{ .Values.image.version }} + imagePullPolicy: IfNotPresent + command: ["/bin/bash","/opt/app/aaf/pod/pod_wait.sh","aaf_hello","sleep","50", "/opt/app/aaf/bin/hello"] + volumeMounts: + - mountPath: "/opt/app/osaaf" + name: {{ .Chart.Name }}-config-vol + ports: + - name: aaf-hello + protocol: TCP + containerPort: 8130