diff --git a/flux/cluster/apps/family/kustomization.yaml b/flux/cluster/apps/family/kustomization.yaml index b3ce6cf..ea3fd5e 100644 --- a/flux/cluster/apps/family/kustomization.yaml +++ b/flux/cluster/apps/family/kustomization.yaml @@ -5,3 +5,4 @@ resources: - galerie-staging - registry-creds.yaml - ansichtkaarten + - weg diff --git a/flux/cluster/apps/family/weg/deployment.yaml b/flux/cluster/apps/family/weg/deployment.yaml new file mode 100644 index 0000000..135c2d5 --- /dev/null +++ b/flux/cluster/apps/family/weg/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: weg-deployment + namespace: family + labels: + app: weg-deployment + keel.sh/policy: force + keel.sh/match-tag: "true" +spec: + replicas: 1 + selector: + matchLabels: + app: weg-deployment + template: + metadata: + labels: + app: weg-deployment + spec: + containers: + - name: weg-deployment + imagePullPolicy: Always + image: registry.asraphiel.dev/library/weg:main + ports: + - containerPort: 80 + imagePullSecrets: + - name: registry-creds \ No newline at end of file diff --git a/flux/cluster/apps/family/weg/ingress.yaml b/flux/cluster/apps/family/weg/ingress.yaml new file mode 100644 index 0000000..a4dc81e --- /dev/null +++ b/flux/cluster/apps/family/weg/ingress.yaml @@ -0,0 +1,17 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: weg-deployment-ingress + namespace: family +spec: + rules: + - host: "weg.asraphiel.dev" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: weg-deployment-service + port: + number: 80 \ No newline at end of file diff --git a/flux/cluster/apps/family/weg/kustomization.yaml b/flux/cluster/apps/family/weg/kustomization.yaml new file mode 100644 index 0000000..ef7dbba --- /dev/null +++ b/flux/cluster/apps/family/weg/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - deployment.yaml + - ingress.yaml + - service.yaml diff --git a/flux/cluster/apps/family/weg/service.yaml b/flux/cluster/apps/family/weg/service.yaml new file mode 100644 index 0000000..d7f1e26 --- /dev/null +++ b/flux/cluster/apps/family/weg/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: weg-deployment-service + namespace: family +spec: + selector: + app: weg-deployment + ports: + - protocol: TCP + port: 80 + targetPort: 80 \ No newline at end of file