diff --git a/flux/cluster/apps/misc/escalator-admin/deployment.yaml b/flux/cluster/apps/misc/escalator-admin/deployment.yaml new file mode 100644 index 0000000..bfb0d63 --- /dev/null +++ b/flux/cluster/apps/misc/escalator-admin/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: escalator-admin-deployment + namespace: misc + labels: + app: escalator-admin-deployment + keel.sh/policy: force + keel.sh/match-tag: "true" +spec: + replicas: 1 + selector: + matchLabels: + app: escalator-admin-deployment + template: + metadata: + labels: + app: escalator-admin-deployment + spec: + containers: + - name: escalator-admin-deployment + imagePullPolicy: Always + image: registry.asraphiel.dev/library/escalator-admin:main + ports: + - containerPort: 80 + imagePullSecrets: + - name: registry-creds diff --git a/flux/cluster/apps/misc/escalator-admin/ingress.yaml b/flux/cluster/apps/misc/escalator-admin/ingress.yaml new file mode 100644 index 0000000..d460223 --- /dev/null +++ b/flux/cluster/apps/misc/escalator-admin/ingress.yaml @@ -0,0 +1,17 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: escalator-admin-deployment-ingress + namespace: misc +spec: + rules: + - host: "escalator-admin.asraphiel.dev" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: escalator-admin-deployment-service + port: + number: 80 diff --git a/flux/cluster/apps/misc/escalator-admin/kustomization.yaml b/flux/cluster/apps/misc/escalator-admin/kustomization.yaml new file mode 100644 index 0000000..ef7dbba --- /dev/null +++ b/flux/cluster/apps/misc/escalator-admin/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/misc/escalator-admin/service.yaml b/flux/cluster/apps/misc/escalator-admin/service.yaml new file mode 100644 index 0000000..a69a03c --- /dev/null +++ b/flux/cluster/apps/misc/escalator-admin/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: escalator-admin-deployment-service + namespace: misc +spec: + selector: + app: escalator-admin-deployment + ports: + - protocol: TCP + port: 80 + targetPort: 80 diff --git a/nixos/machines/nginx/default.nix b/nixos/machines/nginx/default.nix index 42b1f3c..ca0d715 100644 --- a/nixos/machines/nginx/default.nix +++ b/nixos/machines/nginx/default.nix @@ -120,6 +120,10 @@ in { virtualHosts."galeriewoerden.nl" = redirect "galerievanslagmaat.nl"; virtualHosts."www.galeriewoerden.nl" = redirect "galerievanslagmaat.nl"; + virtualHosts."escalator.asraphiel.dev" = k8sProxy; + virtualHosts."escalator-admin.asraphiel.dev" = k8sProxy; + virtualHosts."escalator-api.asraphiel.dev" = k8sProxy; + virtualHosts."weg.asraphiel.dev" = k8sProxy; };