Skip to content

Commit

Permalink
fixed formatting mistakes in the k8s configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Apr 29, 2024
1 parent 5a83b7d commit 83bae3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app.kubernetes.io/part-of: navigatum
app.kubernetes.io/name: web
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
replicas: 1
revisionHistoryLimit: 0
Expand All @@ -24,7 +24,7 @@ spec:
app.kubernetes.io/part-of: navigatum
app.kubernetes.io/name: web
spec:
priorityClassName: { { $.Values.url } }
priorityClassName: {{ $.Values.url }}
containers:
- name: webclient
image: "ghcr.io/tum-dev/navigatum-webclient:{{ $.Values.tag }}"
Expand Down
6 changes: 3 additions & 3 deletions deployment/k3s/templates/networking/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: ingress
labels:
app.kubernetes.io/part-of: navigatum
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
entryPoints:
- websecure
Expand Down Expand Up @@ -48,15 +48,15 @@ spec:
middlewares:
- name: nav-tum-de-redirect
tls:
secretName: { { $.Values.url } }
secretName: {{ $.Values.url }}
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: ingress-http
labels:
app.kubernetes.io/part-of: navigatum
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
entryPoints:
- web
Expand Down
14 changes: 7 additions & 7 deletions deployment/k3s/templates/networking/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app.kubernetes.io/part-of: navigatum
app.kubernetes.io/name: api
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
type: ClusterIP
selector:
Expand All @@ -23,7 +23,7 @@ metadata:
labels:
app.kubernetes.io/part-of: navigatum
app.kubernetes.io/name: maps
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
type: ClusterIP
selector:
Expand All @@ -44,7 +44,7 @@ metadata:
labels:
app.kubernetes.io/part-of: navigatum
app.kubernetes.io/name: cdn
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
type: ClusterIP
selector:
Expand All @@ -62,7 +62,7 @@ metadata:
labels:
app.kubernetes.io/part-of: navigatum
app.kubernetes.io/name: web
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
type: ClusterIP
selector:
Expand All @@ -72,7 +72,7 @@ spec:
- name: http
port: 3000
targetPort: 3000
{ { - if eq "nav.tum.de" $.Values.url } }
{{ - if eq "nav.tum.de" $.Values.url }}
---
apiVersion: v1
kind: Service
Expand All @@ -81,7 +81,7 @@ metadata:
labels:
app.kubernetes.io/part-of: navigatum
app.kubernetes.io/name: postgres
namespace: { { $.Values.namespace } }
namespace: {{ $.Values.namespace }}
spec:
type: ClusterIP
selector:
Expand All @@ -91,4 +91,4 @@ spec:
- name: postgres
port: 5432
targetPort: 5432
{ { end } }
{{ end }}

0 comments on commit 83bae3e

Please sign in to comment.