aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/helm/sink/templates/deployment.yaml
blob: 578f02f0b43692c3dc607a0516709c96974f17a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.vsn_name_0 }}
  labels:
    release: {{ .Release.Name }}
    app: {{ .Values.vnf_name }} #FIXME Should vnf_name be replaced with v*_name_0 for labels?
    chart: {{ .Chart.Name }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app: {{ .Values.vnf_name }}
      release: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app: {{ .Values.vnf_name }}
        release: {{ .Release.Name }}
      annotations:
        k8s.v1.cni.cncf.io/networks: "{{ .Values.vnf_name }}-ovn-attachment"
        k8s.plugin.opnfv.org/nfn-network: |
            { "type": "ovn4nfv",
              "interface": [
                { "name": {{ .Values.int_private2_net_id | quote }},
                  "ipAddress": {{ .Values.vsn_int_private2_ip_0 | quote }},
                  "interface": "eth1",
                  "defaultGateway": "false" },
                { "name": {{ .Values.onap_private_net_id | quote }},
                  "ipAddress": {{ .Values.vsn_onap_private_ip_0 | quote }},
                  "interface": "eth2" ,
                  "defaultGateway": "false" }
              ]
            }
    spec:
      #FIXME DEBUG START
      initContainers:
      - name: init-test
        image: busybox
        command:
            - env
        envFrom:
        - configMapRef:
            name: {{ .Values.vsn_name_0 }}-configmap
      #FIXME DEBUG END
      containers:
      - name: {{ .Chart.Name }}
        image: "{{ .Values.image.sinkrepo }}:{{ .Values.image.sinktag }}"
        envFrom:
        - configMapRef:
            name: {{ .Values.vsn_name_0 }}-configmap
        imagePullPolicy: {{ .Values.image.pullPolicy }}
        tty: true
        stdin: true
        securityContext:
          privileged: true
      - name: darkstat
        image:  "{{ .Values.image.darkstatrepo }}:{{ .Values.image.darkstattag }}"
        imagePullPolicy: {{ .Values.image.pullPolicy }}
        tty: true
        stdin: true
        ports:
          - containerPort: {{ .Values.service.ports.port }}