Skip to content

Commit a2e14ac

Browse files
authored
Merge branch 'main' into fix/openTelemetryErrors
2 parents b4078d7 + d0a911f commit a2e14ac

File tree

6 files changed

+35
-15
lines changed

6 files changed

+35
-15
lines changed

charts/Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ helmfile-lint: .check-helmfile-installed helmfile.yaml ## Lints the helmfile
2727
.helmfile-local-post-install: ## Post install steps for local helmfile deployment
2828
@$(MAKE) -s configure-local-hosts
2929
@echo "";
30-
@echo "Cluster has been deployed locally: http://$(MACHINE_FQDN)";
30+
@echo "Cluster has been deployed locally: https://$(MACHINE_FQDN)";
3131
@echo " For secure connections self-signed certificates are used.";
32-
@echo "
32+
@echo "";
3333

3434
.PHONY: helmfile-apply
3535
helmfile-apply: .check-helmfile-installed helmfile.yaml ## Applies the helmfile configuration
@@ -41,7 +41,7 @@ helmfile-apply: .check-helmfile-installed helmfile.yaml ## Applies the helmfile
4141
fi
4242

4343
.PHONY: helmfile-sync
44-
helmfile-sync: .check-helmfile-installed helmfile.yaml ## Syncs the helmfile configuration
44+
helmfile-sync: .check-helmfile-installed helmfile.yaml ## Syncs the helmfile configuration (use `helmfile-apply` to deploy the app)
4545
set -a; source $(REPO_CONFIG_LOCATION); set +a; \
4646
helmfile -f $(REPO_BASE_DIR)/charts/helmfile.yaml sync
4747

@@ -64,3 +64,10 @@ helmfile-diff: .check-helmfile-installed helmfile.yaml ## Shows the differences
6464
helmfile-delete: .check-helmfile-installed helmfile.yaml ## Deletes the helmfile configuration
6565
@set -a; source $(REPO_CONFIG_LOCATION); set +a; \
6666
helmfile -f $(REPO_BASE_DIR)/charts/helmfile.yaml delete
67+
68+
.PHONY: up
69+
up: helmfile-apply ## Start the stack
70+
71+
.PHONY: leave
72+
leave: ## Leaves kind cluster
73+
kind delete clusters kind

charts/adminer/values.yaml.gotmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ ingress:
4949
enabled: true
5050
className: ""
5151
annotations:
52+
namespace: {{ .Release.Namespace }}
5253
cert-manager.io/cluster-issuer: "cert-issuer"
5354
traefik.ingress.kubernetes.io/router.entrypoints: websecure
5455
tls:

charts/cert-manager/values.selfsigned.yaml.gotmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ extraObjects:
2222
"helm.sh/hook": post-install,post-upgrade
2323
"helm.sh/hook-weight": "1"
2424
spec:
25+
secretTemplate:
26+
annotations:
27+
reflector.v1.k8s.emberstack.com/reflection-allowed: "true"
28+
reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces: "" # Control destination namespaces: emptystring means all
29+
reflector.v1.k8s.emberstack.com/reflection-auto-enabled: "true" # Auto create reflection for matching namespaces
30+
reflector.v1.k8s.emberstack.com/reflection-auto-namespaces: "" # Control auto-reflection namespaces
2531
isCA: true
2632
commonName: local-ca
2733
subject:

charts/traefik/values.insecure.yaml.gotmpl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ extraObjects:
33
kind: Service
44
metadata:
55
name: traefik-api
6+
namespace: {{.Release.Namespace}}
67
spec:
78
type: ClusterIP
89
selector:
910
app.kubernetes.io/name: traefik
10-
app.kubernetes.io/instance: traefik-default
11+
app.kubernetes.io/instance: {{.Release.Namespace}}-traefik
1112
ports:
1213
- port: 8080
1314
name: traefik
@@ -17,7 +18,7 @@ extraObjects:
1718
kind: Secret
1819
metadata:
1920
name: traefik-authorized-users
20-
namespace: default
21+
namespace: {{.Release.Namespace}}
2122
data:
2223
users: |2
2324
{{ requiredEnv "TRAEFIK_K8S_AUTHORIZED_USER" }}
@@ -32,16 +33,18 @@ extraObjects:
3233
kind: Ingress
3334
metadata:
3435
name: traefik-dashboard
36+
namespace: {{.Release.Namespace}}
3537
annotations:
3638
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure # allow http(s) for local deployment
37-
traefik.ingress.kubernetes.io/router.middlewares: default-traefik-basic-auth@kubernetescrd # namespace + middleware name
39+
traefik.ingress.kubernetes.io/router.middlewares: {{.Release.Namespace}}-traefik-basic-auth@kubernetescrd # namespace + middleware name
40+
cert-manager.io/cluster-issuer: "cert-issuer"
3841
spec:
3942
tls:
40-
- hosts:
41-
- k8s.monitoring.{{ requiredEnv "MACHINE_FQDN" }}
42-
secretName: monitoring-tls
43+
- hosts:
44+
- {{ requiredEnv "K8S_MONITORING_FQDN" }}
45+
secretName: monitoring-tls
4346
rules:
44-
- host: k8s.monitoring.{{ requiredEnv "MACHINE_FQDN" }}
47+
- host: {{ requiredEnv "K8S_MONITORING_FQDN" }}
4548
http:
4649
paths:
4750
- path: /dashboard
@@ -51,7 +54,7 @@ extraObjects:
5154
name: traefik-api
5255
port:
5356
name: traefik
54-
- host: k8s.monitoring.{{ requiredEnv "MACHINE_FQDN" }}
57+
- host: {{ requiredEnv "K8S_MONITORING_FQDN" }}
5558
http:
5659
paths:
5760
- path: /api

charts/traefik/values.secure.yaml.gotmpl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ extraObjects:
1010
kind: Service
1111
metadata:
1212
name: traefik-api
13+
namespace: {{.Release.Namespace}}
1314
spec:
1415
type: ClusterIP
1516
selector:
1617
app.kubernetes.io/name: traefik
17-
app.kubernetes.io/instance: traefik-default
18+
app.kubernetes.io/instance: {{.Release.Namespace}}-traefik
1819
ports:
1920
- port: 8080
2021
name: traefik
@@ -25,7 +26,7 @@ extraObjects:
2526
kind: Secret
2627
metadata:
2728
name: traefik-authorized-users
28-
namespace: default
29+
namespace: {{.Release.Namespace}}
2930
data:
3031
users: |2
3132
{{ requiredEnv "TRAEFIK_K8S_AUTHORIZED_USER" }}
@@ -53,9 +54,11 @@ extraObjects:
5354
kind: Ingress
5455
metadata:
5556
name: traefik-dashboard
57+
namespace: {{.Release.Namespace}}
5658
annotations:
5759
traefik.ingress.kubernetes.io/router.entrypoints: websecure
58-
traefik.ingress.kubernetes.io/router.middlewares: default-traefik-basic-auth@kubernetescrd
60+
traefik.ingress.kubernetes.io/router.middlewares: {{.Release.Namespace}}-traefik-basic-auth@kubernetescrd # namespace + middleware name
61+
cert-manager.io/cluster-issuer: "cert-issuer"
5962
spec:
6063
tls:
6164
- hosts:

charts/traefik/values.webinternal.yaml.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ ports:
99
http3:
1010
enabled: false
1111
middlewares:
12-
- default-internal-ipallowlist@kubernetescrd
12+
- {{.Release.Namespace}}-internal-ipallowlist@kubernetescrd

0 commit comments

Comments
 (0)