Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 1 | ######### |
| 2 | ## ============LICENSE_START==================================================== |
| 3 | ## org.onap.aaf |
| 4 | ## =========================================================================== |
| 5 | ## Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | ## =========================================================================== |
| 7 | ## Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | ## you may not use this file except in compliance with the License. |
| 9 | ## You may obtain a copy of the License at |
| 10 | ## |
| 11 | ## http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | ## |
| 13 | ## Unless required by applicable law or agreed to in writing, software |
| 14 | ## distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | ## See the License for the specific language governing permissions and |
| 17 | ## limitations under the License. |
| 18 | ## ============LICENSE_END==================================================== |
| 19 | ## |
| 20 | ### |
| 21 | ### AAF-HELLO |
| 22 | ### |
| 23 | kind: Service |
| 24 | apiVersion: v1 |
| 25 | metadata: |
| 26 | name: aaf-hello |
| 27 | spec: |
| 28 | selector: |
| 29 | app: aaf-hello |
| 30 | type: NodePort |
| 31 | ports: |
| 32 | - name: aaf-hello |
| 33 | protocol: TCP |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 34 | port: {{.Values.cadi.port}} |
| 35 | nodePort: {{ .Values.cadi.public_port}} |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 36 | --- |
| 37 | apiVersion: apps/v1 |
| 38 | kind: Deployment |
| 39 | metadata: |
| 40 | name: aaf-hello |
| 41 | labels: |
| 42 | app: aaf-hello |
| 43 | spec: |
| 44 | replicas: {{ .Values.replicas.hello }} |
| 45 | selector: |
| 46 | matchLabels: |
| 47 | app: aaf-hello |
| 48 | template: |
| 49 | metadata: |
| 50 | labels: |
| 51 | app: aaf-hello |
| 52 | spec: |
| 53 | volumes: |
| 54 | # Use this Pod Sharing dir to declare various States of starting |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 55 | - name: aaf-hello-vol |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 56 | emptyDir: {} |
| 57 | initContainers: |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 58 | - name: aaf-hello-config |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 59 | image: {{ .Values.image.repository }}onap/aaf/aaf_agent:{{ .Values.image.version }} |
| 60 | imagePullPolicy: IfNotPresent |
| 61 | volumeMounts: |
| 62 | - mountPath: "/opt/app/osaaf/local" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 63 | name: aaf-hello-vol |
| 64 | command: ["bash","-c","cd /opt/app/osaaf/local && /opt/app/aaf_config/bin/agent.sh place aaf@aaf.osaaf.org aaf-hello "] |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 65 | env: |
| 66 | - name: "AAF_ENV" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 67 | value: "{{ .Values.cadi.aaf_env }}" |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 68 | - name: "AAF_FQDN" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 69 | value: "aaf-locate.{{ .Release.Namespace }}" |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 70 | - name: "APP_FQDN" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 71 | value: "{{ .Values.cadi.fqdn }}" |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 72 | - name: "APP_FQI" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 73 | value: "{{ .Values.cadi.fqi }}" |
| 74 | - name: "LATITUDE" |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 75 | value: "{{ .Values.cadi.cadi_latitude }}" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 76 | - name: "LONGITUDE" |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 77 | value: "{{ .Values.cadi.cadi_longitude }}" |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 78 | - name: "DEPLOY_FQI" |
| 79 | value: "deployer@people.osaaf.org" |
| 80 | - name: "DEPLOY_PASSWORD" |
| 81 | value: "demo123456!" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 82 | - name: "aaf_locator_container" |
| 83 | value: "helm" |
| 84 | - name: "aaf_locator_port" |
| 85 | value: "{{ .Values.cadi.port }}" |
| 86 | - name: "aaf_locator_fqdn.helm" |
| 87 | value: "{{ .Values.cadi.fqdn }}.{{.Release.Namespace}}" |
| 88 | - name: "aaf_locator_public_hostname" |
| 89 | value: "{{ .Values.cadi.public_fqdn }}" |
| 90 | - name: "aaf_locator_public_port" |
| 91 | value: "{{ .Values.cadi.public_port }}" |
| 92 | - name: "aaf_locator_container_ns" |
| 93 | value: "{{ .Release.Namespace }}" |
| 94 | - name: "aaf_locator_name" |
| 95 | value: "{{.Values.cadi.app_ns}}.hello" |
| 96 | - name: "aaf_locator_name.helm" |
| 97 | value: "{{ .Release.Namespace}}.{{.Values.cadi.app_ns}}.hello" |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 98 | |
| 99 | ### |
| 100 | ### AAF-HELLO |
| 101 | ### |
| 102 | containers: |
| 103 | - name: aaf-hello |
| 104 | image: {{ .Values.image.repository }}onap/aaf/aaf_hello:{{ .Values.image.version }} |
| 105 | imagePullPolicy: IfNotPresent |
| 106 | command: ["/bin/bash","-c","cd /opt/app/aaf && exec bin/hello"] |
| 107 | volumeMounts: |
| 108 | - mountPath: "/opt/app/osaaf/local" |
Instrumental | be7e0d1 | 2019-04-04 21:42:19 -0500 | [diff] [blame^] | 109 | name: aaf-hello-vol |
Instrumental | bd7def7 | 2019-04-03 08:25:28 -0500 | [diff] [blame] | 110 | ports: |
| 111 | - name: aaf-hello |
| 112 | protocol: TCP |
| 113 | containerPort: 8130 |