apps(sharkey): Add service and route configuration

main
trivernis 11 months ago
parent 9d1b012de0
commit ac0e8df9c8
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -13,3 +13,5 @@ resources:
- app/stackgres-pooling.yaml
- app/stackgres.yaml
- app/deploy.yaml
- app/service.yaml
- app/route.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!

@ -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:

@ -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

@ -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
Loading…
Cancel
Save