A applications/sourcehut/deployment-meta.yaml => applications/sourcehut/deployment-meta.yaml +79 -0
@@ 0,0 1,79 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: meta
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ component: meta
+ template:
+ metadata:
+ labels:
+ component: meta
+ spec:
+ containers:
+ - name: main
+ image: ghcr.io/xdavidwu/c/metasrht:3554
+ volumeMounts:
+ - name: secrets
+ mountPath: /etc/sr.ht/config.ini
+ subPath: config.ini
+ - name: passwd
+ mountPath: /etc/passwd
+ readOnly: true
+ - name: shadow
+ mountPath: /etc/shadow
+ readOnly: true
+ - name: group
+ mountPath: /etc/group
+ readOnly: true
+ readinessProbe:
+ httpGet:
+ port: 5000
+ securityContext:
+ runAsGroup: 0
+ - name: api
+ image: ghcr.io/xdavidwu/c/metasrht:3554
+ command:
+ - /usr/bin/meta.sr.ht-api
+ - metasrht.app:app
+ volumeMounts:
+ - name: secrets
+ mountPath: /etc/sr.ht/config.ini
+ subPath: config.ini
+ readinessProbe:
+ httpGet:
+ port: 5100
+ path: /query/api-meta.json
+ - name: webhooks
+ image: ghcr.io/xdavidwu/c/metasrht:3554
+ command:
+ - /usr/bin/celery
+ - -A
+ - metasrht.webhooks
+ - worker
+ - --loglevel=info
+ - --concurrency=2
+ volumeMounts:
+ - name: secrets
+ mountPath: /etc/sr.ht/config.ini
+ subPath: config.ini
+ nodeSelector:
+ kubernetes.io/hostname: parto
+ volumes:
+ - name: secrets
+ secret:
+ secretName: secrets
+ - name: passwd
+ hostPath:
+ path: /etc/passwd
+ type: File
+ - name: shadow
+ hostPath:
+ path: /etc/shadow
+ type: File
+ - name: group
+ hostPath:
+ path: /etc/group
+ type: File
M applications/sourcehut/kustomization.yaml => applications/sourcehut/kustomization.yaml +2 -0
@@ 14,3 14,5 @@ resources:
- service-paste.yaml
- deployment-todo.yaml
- service-todo.yaml
+ - deployment-meta.yaml
+ - service-meta.yaml
A applications/sourcehut/service-meta.yaml => applications/sourcehut/service-meta.yaml +14 -0
@@ 0,0 1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: meta
+spec:
+ selector:
+ component: meta
+ ports:
+ - name: http
+ protocol: TCP
+ port: 5000
+ - name: api
+ protocol: TCP
+ port: 5100