aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/components/cgit/cgit-deploy.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/base/components/cgit/cgit-deploy.yaml')
-rw-r--r--manifests/base/components/cgit/cgit-deploy.yaml50
1 files changed, 50 insertions, 0 deletions
diff --git a/manifests/base/components/cgit/cgit-deploy.yaml b/manifests/base/components/cgit/cgit-deploy.yaml
new file mode 100644
index 0000000..b899709
--- /dev/null
+++ b/manifests/base/components/cgit/cgit-deploy.yaml
@@ -0,0 +1,50 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: cgit
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/name: cgit
+ template:
+ metadata:
+ labels:
+ 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: public.ecr.aws/s0f9o2k5/cgit:v0.0.8
+ securityContext:
+ runAsUser: 0
+ runAsGroup: 1000
+ 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