From 31fbde46fab0dbed8c572573dfbc75593d9b3702 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Mon, 15 Apr 2024 20:54:53 -0700 Subject: feat: kubernetes deployment manifests adds deployment manifests for cgit and go-git-server --- manifests/cgit/cgit-deploy.yaml | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 manifests/cgit/cgit-deploy.yaml (limited to 'manifests/cgit/cgit-deploy.yaml') diff --git a/manifests/cgit/cgit-deploy.yaml b/manifests/cgit/cgit-deploy.yaml new file mode 100644 index 0000000..cfbdeb8 --- /dev/null +++ b/manifests/cgit/cgit-deploy.yaml @@ -0,0 +1,50 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cgit +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: cgit + app.kubernetes.io/name: cgit + template: + metadata: + labels: + app.kubernetes.io/instance: cgit + app.kubernetes.io/name: cgit + spec: + containers: + - env: + - name: CGIT_HOSTNAME + value: git.localhost + - name: CGIT_PORT + value: "8080" + - name: CGIT_CONFIG + value: /opt/etc/cgitrc + image: registry.gitlab.com/grumps/grumpy-containers/cgit:v0.0.5 + imagePullPolicy: Always + name: cgit + ports: + - containerPort: 8080 + name: http + protocol: TCP + volumeMounts: + - mountPath: /opt/repos + name: go-git-storage + readOnly: false + - mountPath: /opt/etc + name: cgitrc + readOnly: true + imagePullSecrets: + - name: regcred + serviceAccountName: cgit + volumes: + - name: go-git-storage + persistentVolumeClaim: + claimName: go-git-storage + - name: cgitrc + configMap: + defaultMode: 420 + name: cgitrc + -- cgit v1.2.3