diff --git a/apps/sharkey/app.yaml b/apps/sharkey/app.yaml index 719152f..348e160 100644 --- a/apps/sharkey/app.yaml +++ b/apps/sharkey/app.yaml @@ -13,3 +13,5 @@ resources: - app/stackgres-pooling.yaml - app/stackgres.yaml - app/deploy.yaml + - app/service.yaml + - app/route.yaml diff --git a/apps/sharkey/app/config.yaml b/apps/sharkey/app/config.yaml index 2727af5..4ef88e7 100644 --- a/apps/sharkey/app/config.yaml +++ b/apps/sharkey/app/config.yaml @@ -13,7 +13,7 @@ data: #───┘ URL └───────────────────────────────────────────────────── # Final accessible URL seen by a user. - url: https://social.funkyfish.cool + url: https://sharkey.trivernis.dev # ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE # URL SETTINGS AFTER THAT! diff --git a/apps/sharkey/app/deploy.yaml b/apps/sharkey/app/deploy.yaml index 63dbaa8..dc98e21 100644 --- a/apps/sharkey/app/deploy.yaml +++ b/apps/sharkey/app/deploy.yaml @@ -3,6 +3,8 @@ kind: Deployment metadata: name: sharkey namespace: sharkey + labels: + app: sharkey spec: replicas: 1 selector: @@ -36,6 +38,12 @@ spec: - name: sharkey-config mountPath: "/sharkey/.config" readOnly: true + - name: redis + image: redis + ports: + - containerPort: 3000 + name: http + protocol: TCP - name: redis image: redis ports: diff --git a/apps/sharkey/app/route.yaml b/apps/sharkey/app/route.yaml new file mode 100644 index 0000000..1aa7cf8 --- /dev/null +++ b/apps/sharkey/app/route.yaml @@ -0,0 +1,17 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: web + namespace: sharkey +spec: + entryPoints: + - web + routes: + - match: Host(`sharkey.trivernis.dev`) + kind: Rule + middlewares: + - name: strict-security-headers + namespace: default + services: + - name: sharkey + port: http diff --git a/apps/sharkey/app/service.yaml b/apps/sharkey/app/service.yaml new file mode 100644 index 0000000..41242ac --- /dev/null +++ b/apps/sharkey/app/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: sharkey + namespace: sharkey +spec: + ports: + - name: http + port: 3000 + protocol: TCP + targetPort: http + selector: + app: sharkey + type: ClusterIP +