aboutsummaryrefslogtreecommitdiff
path: root/roles/fishnet/files/fishnet/templates/deployment.yaml
blob: 4cdc4b4bc968a385d8d5981c4cad83a1eded6674 (plain) (blame)
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
apiVersion: apps/v1
kind: Deployment
metadata:
  name: "{{ .Chart.Name }}-deployment"
  labels:
    app: {{ .Chart.Name }}
spec:
  replicas: {{ .Values.replicas }}
  selector:
    matchLabels:
      app: {{ .Chart.Name }}
  template:
    metadata:
      labels:
        app: {{ .Chart.Name }}
    spec:
      containers:
        - name: fishnet
          image: niklasf/fishnet:2
          imagePullPolicy: Always
          env:
            # - name: CORES
            #   valueFrom:
            #     configMapKeyRef:
            #       name: fishnet-config
            #       key: cores
            - name: KEY
              valueFrom:
                secretKeyRef:
                  name: lichess
                  key: fishnet-private-key
      restartPolicy: Always