diff --git a/flux/cluster/apps/misc/escalator-backend/deployment.yaml b/flux/cluster/apps/misc/escalator-backend/deployment.yaml new file mode 100644 index 0000000..f0b1717 --- /dev/null +++ b/flux/cluster/apps/misc/escalator-backend/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: escalator-backend-deployment + namespace: misc + labels: + app: escalator-backend-deployment + keel.sh/policy: force + keel.sh/match-tag: "true" +spec: + replicas: 1 + selector: + matchLabels: + app: escalator-backend-deployment + template: + metadata: + labels: + app: escalator-backend-deployment + spec: + containers: + - name: escalator-backend-deployment + imagePullPolicy: Always + image: registry.asraphiel.dev/library/escalator-backend:main + ports: + - containerPort: 8080 + imagePullSecrets: + - name: registry-creds diff --git a/flux/cluster/apps/misc/escalator-backend/ingress.yaml b/flux/cluster/apps/misc/escalator-backend/ingress.yaml new file mode 100644 index 0000000..cad62f2 --- /dev/null +++ b/flux/cluster/apps/misc/escalator-backend/ingress.yaml @@ -0,0 +1,17 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: escalator-backend-deployment-ingress + namespace: misc +spec: + rules: + - host: "escalator.asraphiel.dev" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: escalator-backend-deployment-service + port: + number: 80 diff --git a/flux/cluster/apps/misc/escalator-backend/kustomization.yaml b/flux/cluster/apps/misc/escalator-backend/kustomization.yaml new file mode 100644 index 0000000..ef7dbba --- /dev/null +++ b/flux/cluster/apps/misc/escalator-backend/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-backend/service.yaml b/flux/cluster/apps/misc/escalator-backend/service.yaml new file mode 100644 index 0000000..f90c830 --- /dev/null +++ b/flux/cluster/apps/misc/escalator-backend/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: escalator-backend-deployment-service + namespace: misc +spec: + selector: + app: escalator-backend-deployment + ports: + - protocol: TCP + port: 80 + targetPort: 8080 diff --git a/flux/cluster/apps/misc/escalator-display/deployment.yaml b/flux/cluster/apps/misc/escalator-display/deployment.yaml new file mode 100644 index 0000000..b68203b --- /dev/null +++ b/flux/cluster/apps/misc/escalator-display/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: escalator-display-deployment + namespace: misc + labels: + app: escalator-display-deployment + keel.sh/policy: force + keel.sh/match-tag: "true" +spec: + replicas: 1 + selector: + matchLabels: + app: escalator-display-deployment + template: + metadata: + labels: + app: escalator-display-deployment + spec: + containers: + - name: escalator-display-deployment + imagePullPolicy: Always + image: registry.asraphiel.dev/library/escalator-display:main + ports: + - containerPort: 3000 + imagePullSecrets: + - name: registry-creds diff --git a/flux/cluster/apps/misc/escalator-display/ingress.yaml b/flux/cluster/apps/misc/escalator-display/ingress.yaml new file mode 100644 index 0000000..6f9e9b5 --- /dev/null +++ b/flux/cluster/apps/misc/escalator-display/ingress.yaml @@ -0,0 +1,17 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: escalator-display-deployment-ingress + namespace: misc +spec: + rules: + - host: "escalator.asraphiel.dev" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: escalator-display-deployment-service + port: + number: 80 diff --git a/flux/cluster/apps/misc/escalator-display/kustomization.yaml b/flux/cluster/apps/misc/escalator-display/kustomization.yaml new file mode 100644 index 0000000..ef7dbba --- /dev/null +++ b/flux/cluster/apps/misc/escalator-display/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-display/service.yaml b/flux/cluster/apps/misc/escalator-display/service.yaml new file mode 100644 index 0000000..e8efe40 --- /dev/null +++ b/flux/cluster/apps/misc/escalator-display/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: escalator-display-deployment-service + namespace: misc +spec: + selector: + app: escalator-display-deployment + ports: + - protocol: TCP + port: 80 + targetPort: 3000 diff --git a/flux/cluster/apps/misc/kustomization.yaml b/flux/cluster/apps/misc/kustomization.yaml index b17e3fc..411f38e 100644 --- a/flux/cluster/apps/misc/kustomization.yaml +++ b/flux/cluster/apps/misc/kustomization.yaml @@ -6,3 +6,5 @@ resources: - whoami - tickets - escalator-admin + - escalator-display + - escalator-backend