aboutsummaryrefslogtreecommitdiff
path: root/roles/fishnet/files
diff options
context:
space:
mode:
Diffstat (limited to 'roles/fishnet/files')
-rw-r--r--roles/fishnet/files/fishnet/Chart.yaml6
-rw-r--r--roles/fishnet/files/fishnet/templates/deployment.yaml32
2 files changed, 38 insertions, 0 deletions
diff --git a/roles/fishnet/files/fishnet/Chart.yaml b/roles/fishnet/files/fishnet/Chart.yaml
new file mode 100644
index 0000000..5c0e9f8
--- /dev/null
+++ b/roles/fishnet/files/fishnet/Chart.yaml
@@ -0,0 +1,6 @@
+apiVersion: v2
+name: fishnet
+description: Distributed analysis for lichess
+type: application
+
+version: 0.1.0
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