Skip to content

Commit

Permalink
ci: change ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmann committed Jun 5, 2024
1 parent 58a240d commit ebb6cb7
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 75 deletions.
8 changes: 8 additions & 0 deletions k8s/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ spec:
number: {{ .service.port }}
{{- end }}
{{- end }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
70 changes: 36 additions & 34 deletions k8s/values.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
deployment:
annotations: {}
labels: {}
namespace: green-ecolution-project-website
name: project-website
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website
pullPolicy: Always
tag: latest
annotations: {}
labels: {}
namespace: green-ecolution-project-website
name: project-website
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website
pullPolicy: Always
tag: latest

imagePullSecrets: []
nameOverride: ""
Expand All @@ -21,41 +21,43 @@ podSecurityContext: {}
securityContext: {}

service:
name: project-website
type: ClusterIP
port: 80
protocol: TCP
name: project-website
type: ClusterIP
port: 80
protocol: TCP

ingress:
name: project-website
enabled: true
className: "traefik"
annotations:
- "kubernetes.io/ingress.class: traefik"
hosts:
- host: green-ecolution.de
paths:
- path: /
pathType: ImplementationSpecific
service:
name: project-website
port: 80
tls: []
enabled: false
className: ""
annotations:
- "cert-manager.io/cluster-issuer: cert-manager"
- "kubernetes.io/ingress.class: traefik"
hosts:
- host: green-ecolution.de
paths:
- path: /
pathType: ImplementationSpecific
service:
name: project-website
port: 80
tls:
hosts:
- green-ecolution.de
secretName: project-website-tls

resources: {}

livenessProbe:
httpGet:
path: /
port: http
httpGet:
path: /
port: http

readinessProbe:
httpGet:
path: /
port: http
httpGet:
path: /
port: http

volumes: []
volumeMounts: []

nodeSelector: {}

38 changes: 21 additions & 17 deletions k8s/values/develop.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
deployment:
namespace: green-ecolution-project-website-dev
name: project-website-dev
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website-dev
pullPolicy: Always
tag: "af5d56c"
namespace: green-ecolution-project-website-dev
name: project-website-dev
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website-dev
pullPolicy: Always
tag: "af5d56c"

ingress:
enabled: true
hosts:
- host: dev.green-ecolution.de
paths:
- path: /
pathType: ImplementationSpecific
service:
name: project-website
port: 80
tls: []
enabled: true
hosts:
- host: dev.green-ecolution.de
paths:
- path: /
pathType: ImplementationSpecific
service:
name: project-website
port: 80
tls:
hosts:
- dev.green-ecolution.de
secretName: project-website-dev-tls
18 changes: 11 additions & 7 deletions k8s/values/prod.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
deployment:
namespace: green-ecolution-project-website
name: project-website
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website
pullPolicy: Always
tag: latest
namespace: green-ecolution-project-website
name: project-website
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website
pullPolicy: Always
tag: latest


ingress:
enabled: true
38 changes: 21 additions & 17 deletions k8s/values/stage.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
deployment:
namespace: green-ecolution-project-website-stage
name: project-website-stage
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website-stage
pullPolicy: Always
tag: b301f8c
namespace: green-ecolution-project-website-stage
name: project-website-stage
replicaCount: 1
image:
repository: ghcr.io/smartcityflensburg/project-website-stage
pullPolicy: Always
tag: b301f8c

ingress:
enabled: true
hosts:
- host: stage.green-ecolution.de
paths:
- path: /
pathType: ImplementationSpecific
service:
name: project-website
port: 80
tls: []
enabled: true
hosts:
- host: stage.green-ecolution.de
paths:
- path: /
pathType: ImplementationSpecific
service:
name: project-website
port: 80
tls:
hosts:
- stage.green-ecolution.de
secretName: project-website-stage-tls

0 comments on commit ebb6cb7

Please sign in to comment.