aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/app-deployment/helm/charts/proxchart/templates/deployment.yaml
blob: 235b02cd22bf98898358d454d387ff94067610b5 (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
{{- if eq .Values.kind "Deployment"}}
apiVersion: apps/v1
kind: Deployment
metadata:
  name: prox
  annotations:
    k8s.v1.cni.cncf.io/networks: "{{- join "\",\"" .Values.extraInterfaces | toYaml | nindent 8}}"
spec:
  selector:
    matchLabels:
      app: prox
  replicas: {{ .Values.replicas }}
  template:
    metadata:
      labels:
        app: prox
    spec:
      containers:
      - name: prox
        image: opnfv/rapid:latest
        imagePullPolicy: IfNotPresent
        ports:
          - containerPort: 3000
      - name: nginx
        image: nginx:alpine
        ports:
          - containerPort: 80
      nodeSelector:
        {{- .Values.nodeSelector.matchLables | toYaml | nindent 12 }}
{{- end }}