From 0b5f0f135bfd8e7dff790eca67db0f7a7d09c054 Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Sat, 12 Apr 2025 19:31:19 +0100 Subject: [PATCH] Added Hexound --- k8s/apps/hexound/app.yaml | 21 +++++++++++++++ k8s/apps/hexound/deployment.yaml | 42 +++++++++++++++++++++++++++++ k8s/apps/hexound/kustomization.yaml | 8 ++++++ k8s/apps/hexound/service.yaml | 14 ++++++++++ 4 files changed, 85 insertions(+) create mode 100644 k8s/apps/hexound/app.yaml create mode 100644 k8s/apps/hexound/deployment.yaml create mode 100644 k8s/apps/hexound/kustomization.yaml create mode 100644 k8s/apps/hexound/service.yaml diff --git a/k8s/apps/hexound/app.yaml b/k8s/apps/hexound/app.yaml new file mode 100644 index 0000000..a5e15e4 --- /dev/null +++ b/k8s/apps/hexound/app.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: hexound + namespace: argocd +spec: + project: apps + destination: + namespace: hexound + server: https://kubernetes.default.svc + source: + repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git + targetRevision: HEAD + path: k8s/apps/hexound + syncPolicy: + automated: + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true + diff --git a/k8s/apps/hexound/deployment.yaml b/k8s/apps/hexound/deployment.yaml new file mode 100644 index 0000000..0bbf578 --- /dev/null +++ b/k8s/apps/hexound/deployment.yaml @@ -0,0 +1,42 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hexound + namespace: hexound +spec: + replicas: 1 + selector: + matchLabels: + app: hexound + template: + metadata: + labels: + app: hexound + spec: + volumes: + - name: hexound-repo + emptyDir: {} + initContainers: + - name: git-cloner + image: alpine/git + command: + - git + - clone + - --depth=1 + - https://github.com/house-of-vanity/hexound.ru.git + - /repo + volumeMounts: + - name: hexound-repo + mountPath: /repo + containers: + - name: hexound + image: trafex/php-nginx:3.8.0 + volumeMounts: + - name: hexound-repo + mountPath: /var/www/html + ports: + - name: http + containerPort: 8080 + protocol: TCP + diff --git a/k8s/apps/hexound/kustomization.yaml b/k8s/apps/hexound/kustomization.yaml new file mode 100644 index 0000000..fcc6ac2 --- /dev/null +++ b/k8s/apps/hexound/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - app.yaml + - deployment.yaml + - service.yaml + diff --git a/k8s/apps/hexound/service.yaml b/k8s/apps/hexound/service.yaml new file mode 100644 index 0000000..1c8a641 --- /dev/null +++ b/k8s/apps/hexound/service.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: hexound + namespace: hexound +spec: + selector: + app: hexound + ports: + - protocol: TCP + port: 80 + targetPort: 8080 +