aboutsummaryrefslogtreecommitdiff
path: root/roles/fishnet/files/fishnet/templates/deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/fishnet/files/fishnet/templates/deployment.yaml')
-rw-r--r--roles/fishnet/files/fishnet/templates/deployment.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/roles/fishnet/files/fishnet/templates/deployment.yaml b/roles/fishnet/files/fishnet/templates/deployment.yaml
new file mode 100644
index 0000000..4cdc4b4
--- /dev/null
+++ b/roles/fishnet/files/fishnet/templates/deployment.yaml
@@ -0,0 +1,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