From 55298a51cb0cc5e68c5a43869f2f32b899d3a622 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Tue, 22 Apr 2025 17:29:46 -0500 Subject: init --- roles/fishnet/files/fishnet/Chart.yaml | 6 ++++ .../files/fishnet/templates/deployment.yaml | 32 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 roles/fishnet/files/fishnet/Chart.yaml create mode 100644 roles/fishnet/files/fishnet/templates/deployment.yaml (limited to 'roles/fishnet/files') 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 -- cgit