summaryrefslogtreecommitdiffstats
path: root/auth/helm/aaf/templates/aaf-oauth.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'auth/helm/aaf/templates/aaf-oauth.yaml')
-rw-r--r--auth/helm/aaf/templates/aaf-oauth.yaml42
1 files changed, 21 insertions, 21 deletions
diff --git a/auth/helm/aaf/templates/aaf-oauth.yaml b/auth/helm/aaf/templates/aaf-oauth.yaml
index 722cc633..2e2acb4b 100644
--- a/auth/helm/aaf/templates/aaf-oauth.yaml
+++ b/auth/helm/aaf/templates/aaf-oauth.yaml
@@ -29,10 +29,10 @@ spec:
app: aaf-oauth
type: NodePort
ports:
- - name: aaf-oauth
+ - name: {{.Values.services.oauth.fqdn}}
protocol: TCP
- port: 8140
- nodePort: 30082
+ port: {{.Values.services.oauth.internal_port}}
+ nodePort: {{.Values.services.oauth.public_port}}
---
apiVersion: apps/v1
kind: Deployment
@@ -41,7 +41,7 @@ metadata:
labels:
app: aaf-oauth
spec:
- replicas: {{ .Values.replicas.oauth }}
+ replicas: {{ .Values.services.oauth.replicas }}
selector:
matchLabels:
app: aaf-oauth
@@ -52,27 +52,27 @@ spec:
spec:
volumes:
# Use this Pod Sharing dir to declare various States of starting
- - name: {{ .Chart.Name }}-config-vol
+ - name: aaf-config-vol
persistentVolumeClaim:
- claimName: {{ .Chart.Name }}-config-pvc
- - name: {{ .Chart.Name }}-status-vol
+ claimName: aaf-config-pvc
+ - name: aaf-status-vol
persistentVolumeClaim:
- claimName: {{ .Chart.Name }}-status-pvc
+ claimName: aaf-status-pvc
initContainers:
- - name: {{ .Chart.Name }}-config-container
+ - name: aaf-config-container
image: {{ .Values.image.repository }}onap/aaf/aaf_config:{{ .Values.image.version }}
imagePullPolicy: IfNotPresent
command: ["bash","/opt/app/aaf_config/bin/agent.sh"]
volumeMounts:
- mountPath: "/opt/app/osaaf"
- name: {{ .Chart.Name }}-config-vol
+ name: aaf-config-vol
env:
- name: AAF_ENV
- value: "{{ .Values.cadi.aaf_env }}"
+ value: "{{ .Values.services.aaf_env }}"
- name: LATITUDE
- value: "{{ .Values.cadi.cadi_latitude }}"
+ value: "{{ .Values.services.cadi_latitude }}"
- name: LONGITUDE
- value: "{{ .Values.cadi.cadi_longitude }}"
+ value: "{{ .Values.services.cadi_longitude }}"
- name: aaf_locator_container
value: "helm"
- name: aaf_locator_container_ns
@@ -80,11 +80,11 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: aaf_locate_url
- value: "https://aaf-locate.onap:8095"
+ value: "https://{{.Values.services.locate.fqdn}}.{{.Values.services.ns}}:{{.Values.services.locate.internal_port}}"
- name: aaf_locator_public_fqdn
- value: "aaf.osaaf.org"
+ value: "{{.Values.services.public_fqdn}}"
- name: CASSANDRA_CLUSTER
- value: "aaf-cass"
+ value: "{{.Values.services.cass.fqdn}}.{{.Values.services.ns}}"
# - name: CASSANDRA_USER
# value: ""
# - name: CASSANDRA_PASSWORD
@@ -95,19 +95,19 @@ spec:
###
### AAF-OAUTH
###
- - name: {{ .Chart.Name }}-oauth
+ - name: aaf-oauth
image: {{ .Values.image.repository }}onap/aaf/aaf_oauth:{{ .Values.image.version }}
imagePullPolicy: IfNotPresent
command: ["/bin/bash","-c","cd /opt/app/aaf && /bin/bash bin/pod_wait.sh aaf-oauth aaf-service && exec bin/oauth"]
volumeMounts:
- mountPath: "/opt/app/osaaf"
- name: {{ .Chart.Name }}-config-vol
+ name: aaf-config-vol
- mountPath: "/opt/app/aaf/status"
- name: {{ .Chart.Name }}-status-vol
+ name: aaf-status-vol
ports:
- - name: aaf-oauth
+ - name: {{.Values.services.oauth.fqdn}}
protocol: TCP
- containerPort: 8140
+ containerPort: {{.Values.services.oauth.internal_port}}
env:
- name: aaf_locator_ns
valueFrom: