Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ App Helmfile templates.
export RANCHER_PASSWORD=<REPLACE-ME>

helmfile apply -f \
git::https://github.com/stuttgart-things/helm.git@apps/apps/homerun-base-stack.yaml.gotmpl \
git::https://github.com/stuttgart-things/helm.git@apps/apps/rancher.yaml.gotmpl \
--state-values-set issuerName=cluster-issuer-approle \
--state-values-set domain=demo-infra.sthings-vsphere.labul.sva.de \ --state-values-set bootstrapPassword={{ env "RANCHER_PASSWORD" | default "hall01234R@ncher" }} \
--state-values-set domain=demo-infra.sthings-vsphere.labul.sva.de \
--state-values-set bootstrapPassword={{ env "RANCHER_PASSWORD" | default "hall01234R@ncher" }} \
--state-values-set cacerts=LS0tLS1CRUdJTiBDRV#..
```

Expand Down
2 changes: 1 addition & 1 deletion apps/rancher.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environments:
- issuerKind: ClusterIssuer
- issuerName: vault-approle
- cacerts: ""
- bootstrapPassword: "Adminpassword!123"
- bootstrapPassword: "Adminpassword!123" # pragma: allowlist secret
- ingressClass: nginx
- privateCA: true
---
Expand Down
6 changes: 6 additions & 0 deletions infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ EOF

### w/ SELF-SIGNED

```bash
kubectl apply -k https://github.com/stuttgart-things/helm/infra/crds/cert-manager

helmfile apply -f git::https://github.com/stuttgart-things/helm.git@infra/cert-manager.yaml.gotmpl --state-values-set installCrds=false
```

```bash
cat <<EOF > cert-manager-selfsigned.yaml
---
Expand Down
2 changes: 1 addition & 1 deletion infra/cert-manager.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ environments:
default:
values:
- namespace: cert-manager
- version: v1.19.1
- version: v1.19.2
- config: selfsigned
- installCrds: true
---
Expand Down
5 changes: 3 additions & 2 deletions infra/ingress-nginx.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ environments:
default:
values:
- namespace: ingress-nginx
- version: 4.13.0
- enableHostPort: false
- version: 4.14.1
- enableKindHostPort: false
- enableNodePort: false
---
releases:
- name: ingress-nginx
Expand Down
21 changes: 20 additions & 1 deletion infra/values/ingress-nginx.values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.enableHostPort }}
{{- if .Values.enableKindHostPort }}
---
controller:
nodeSelector:
Expand All @@ -16,3 +16,22 @@ controller:
hostPort:
enabled: true # Enables direct binding to host ports
{{- end }}


{{- if .Values.enableNodePort }}
---
controller:
nodeSelector:
ingress-ready: "true"
node-role.kubernetes.io/control-plane: "true" # Matches real node
tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
service:
type: NodePort
admissionWebhooks:
enabled: false
hostPort:
enabled: true
{{- end }}
Loading