apps: add honk
Anirudh Oppiliappan x@icyphox.sh
Sun, 07 Jul 2024 23:12:16 +0300
3 files changed,
87 insertions(+),
2 deletions(-)
A
apps/honk/honk.yaml
@@ -0,0 +1,85 @@
+apiVersion: apps/v1 +kind: Deployment +metadata: + name: honk + labels: + app: honk +spec: + selector: + matchLabels: + app: honk + template: + metadata: + labels: + app: honk + spec: + securityContext: + runAsUser: 1000 + runAsGroup: 3000 + fsGroup: 2000 + containers: + - name: honk + image: sini:5000/honk:latest + volumeMounts: + - name: data + mountPath: /data + readOnly: false + - name: certs + mountPath: /etc/ssl/certs + readOnly: true + ports: + - name: http + containerPort: 8080 + args: + - -datadir + - /data + volumes: + - name: data + persistentVolumeClaim: + claimName: honk-data + - name: certs + hostPath: + path: /etc/ssl/certs +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: honk-data +spec: + storageClassName: local-path + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi +--- +apiVersion: v1 +kind: Service +metadata: + name: honk +spec: + selector: + app: honk + ports: + - name: honk-http + port: 8080 + targetPort: 8080 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: h.icyphox.sh + namespace: default +spec: + ingressClassName: caddy + rules: + - host: h.icyphox.sh + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: honk + port: + number: 8080
M
apps/imaginary/imaginary.yaml
→
apps/imaginary/imaginary.yaml
@@ -13,8 +13,6 @@ metadata:
labels: app: imaginary spec: - nodeSelector: - kubernetes.io/hostname: sini containers: - name: imaginary image: h2non/imaginary:latest
M
apps/legit/legit.yaml
→
apps/legit/legit.yaml
@@ -16,6 +16,8 @@ metadata:
labels: app: legit spec: + nodeSelector: + kubernetes.io/hostname: denna containers: - name: legit image: sini:5000/legit:latest