Created
April 29, 2024 14:38
-
-
Save proffalken/574ba5f3088b0325e1308c96a6b1b2ff to your computer and use it in GitHub Desktop.
Launch Bar Assistant on k3s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
homepage.description: Drinks! | |
homepage.group: Organisation | |
homepage.href: https://drinks.my.domain/ | |
homepage.name: Drinks | |
traefik.enable: "true" | |
traefik.http.routers.drinks-api.entrypoints: websecure | |
traefik.http.routers.drinks-api.rule: Host(`drinks-api.my.domain`) | |
creationTimestamp: null | |
labels: | |
service: "drinks-api" | |
name: drinks-api | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
service: "drinks-api" | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
annotations: | |
homepage.description: Drinks! | |
homepage.group: Organisation | |
homepage.href: https://drinks.my.domain/ | |
homepage.name: Drinks | |
traefik.enable: "true" | |
traefik.http.routers.drinks-api.entrypoints: websecure | |
traefik.http.routers.drinks-api.rule: Host(`drinks-api.my.domain`) | |
labels: | |
service: "drinks-api" | |
spec: | |
containers: | |
- env: | |
- name: APP_URL | |
value: "https://drinks-api.my.domain" | |
- name: LOG_CHANNEL | |
value: stderr | |
- name: MEILISEARCH_KEY | |
value: <TOKEN> | |
- name: MEILISEARCH_HOST | |
value: http://meilisearch.my.domain:7700 | |
- name: REDIS_HOST | |
value: valkey.my.domain | |
- name: ALLOW_REGISTRATION | |
value: "true" | |
image: barassistant/server:v3 | |
name: drinks-api | |
ports: | |
- containerPort: 3000 | |
hostPort: 3110 | |
protocol: TCP | |
restartPolicy: Always | |
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: drinks-api.my.domain | |
annotations: | |
traefik.ingress.kubernetes.io/router.entrypoints: websecure | |
traefik.ingress.kubernetes.io/router.tls: "true" | |
ingress.kubernetes.io/class: "traefik" | |
ingress.kubernetes.io/ssl-redirect: "true" | |
cert-manager.io/cluster-issuer: letsencrypt | |
spec: | |
ingressClassName: traefik | |
rules: | |
- host: drinks-api.my.domain | |
http: | |
paths: | |
- path: / | |
pathType: Prefix | |
backend: | |
service: | |
name: drinks-api | |
port: | |
name: drinks-api | |
tls: | |
- secretName: drinks-api-cert | |
hosts: | |
- drinks-api.my.domain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
traefik.enable: "true" | |
traefik.http.routers.drinks-api.entrypoints: websecure | |
traefik.http.routers.drinks-api.rule: Host(`drinks-api.my.domain`) | |
creationTimestamp: null | |
labels: | |
service: drinks-api | |
name: drinks-api | |
namespace: default | |
spec: | |
ports: | |
- name: drinks-api | |
port: 3110 | |
targetPort: 3000 | |
selector: | |
service: drinks-api | |
status: | |
loadBalancer: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
traefik.enable: "true" | |
traefik.http.routers.drinks.entrypoints: websecure | |
traefik.http.routers.drinks.rule: Host(`drinks.my.domain`) | |
labels: | |
io.kompose.service: drinks | |
name: drinks | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
io.kompose.service: drinks | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
annotations: | |
traefik.enable: "true" | |
traefik.http.routers.drinks.entrypoints: websecure | |
traefik.http.routers.drinks.rule: Host(`drinks.my.domain`) | |
labels: | |
io.kompose.service: drinks | |
spec: | |
containers: | |
- env: | |
- name: API_URL | |
value: https://drinks-api.my.domain | |
- name: MEILISEARCH_URL | |
value: http://meilisearch.my.domain:7700 | |
- name: DEFAULT_LOCALE | |
value: en-GB | |
image: barassistant/salt-rim:v2 | |
name: drinks | |
ports: | |
- containerPort: 8080 | |
hostPort: 8898 | |
protocol: TCP | |
resources: {} | |
restartPolicy: Always | |
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: drinks.my.domain | |
annotations: | |
traefik.ingress.kubernetes.io/router.entrypoints: websecure | |
traefik.ingress.kubernetes.io/router.tls: "true" | |
ingress.kubernetes.io/class: "traefik" | |
ingress.kubernetes.io/ssl-redirect: "true" | |
cert-manager.io/cluster-issuer: letsencrypt | |
spec: | |
ingressClassName: traefik | |
rules: | |
- host: drinks.my.domain | |
http: | |
paths: | |
- path: / | |
pathType: Prefix | |
backend: | |
service: | |
name: drinks | |
port: | |
number: 8898 | |
tls: | |
- secretName: drinks-cert | |
hosts: | |
- drinks.my.domain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
io.kompose.service: drinks | |
name: drinks | |
spec: | |
type: ClusterIP | |
ports: | |
- protocol: TCP | |
port: 8898 | |
targetPort: 8080 | |
name: drinks | |
selector: | |
io.kompose.service: drinks | |
status: | |
loadBalancer: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment