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 |
| 34 | port: 8130 |
| 35 | nodePort: 30086 |
| 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 |
| 55 | - name: hello-config-vol |
| 56 | emptyDir: {} |
| 57 | initContainers: |
| 58 | - name: hello-config-container |
| 59 | image: {{ .Values.image.repository }}onap/aaf/aaf_agent:{{ .Values.image.version }} |
| 60 | imagePullPolicy: IfNotPresent |
| 61 | volumeMounts: |
| 62 | - mountPath: "/opt/app/osaaf/local" |
| 63 | name: hello-config-vol |
| 64 | command: ["bash","-c","cd /opt/app/osaaf/local && /opt/app/aaf_config/bin/agent.sh place aaf@aaf.osaaf.org aaf"] |
| 65 | env: |
| 66 | - name: "AAF_ENV" |
| 67 | value: "DEV" |
| 68 | - name: "AAF_FQDN" |
| 69 | value: "aaf-locate.onap" |
| 70 | - name: "APP_FQDN" |
| 71 | value: "aaf" |
| 72 | - name: "APP_FQI" |
| 73 | value: "aaf@aaf.osaaf.org" |
| 74 | - name: LATITUDE |
| 75 | value: "{{ .Values.cadi.cadi_latitude }}" |
| 76 | - name: LONGITUDE |
| 77 | value: "{{ .Values.cadi.cadi_longitude }}" |
| 78 | - name: "CONTAINER_NS" |
| 79 | valueFrom: |
| 80 | fieldRef: |
| 81 | fieldPath: metadata.namespace |
| 82 | - name: "DEPLOY_FQI" |
| 83 | value: "deployer@people.osaaf.org" |
| 84 | - name: "DEPLOY_PASSWORD" |
| 85 | value: "demo123456!" |
| 86 | |
| 87 | ### |
| 88 | ### AAF-HELLO |
| 89 | ### |
| 90 | containers: |
| 91 | - name: aaf-hello |
| 92 | image: {{ .Values.image.repository }}onap/aaf/aaf_hello:{{ .Values.image.version }} |
| 93 | imagePullPolicy: IfNotPresent |
| 94 | command: ["/bin/bash","-c","cd /opt/app/aaf && exec bin/hello"] |
| 95 | volumeMounts: |
| 96 | - mountPath: "/opt/app/osaaf/local" |
| 97 | name: hello-config-vol |
| 98 | ports: |
| 99 | - name: aaf-hello |
| 100 | protocol: TCP |
| 101 | containerPort: 8130 |
| 102 | |