Skip to content

Commit a0a2744

Browse files
feat: feat/add-rancher
1 parent aaec0d2 commit a0a2744

5 files changed

Lines changed: 39 additions & 9 deletions

File tree

apps/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ App Helmfile templates.
66

77
## SERVICES
88

9+
<details><summary>RANCHER</summary>
10+
11+
```bash
12+
# EXAMPLE APPLY
13+
export RANCHER_PASSWORD=<REPLACE-ME>
14+
15+
helmfile apply -f \
16+
git::https://github.com/stuttgart-things/helm.git@apps/apps/homerun-base-stack.yaml.gotmpl \
17+
--state-values-set issuerName=cluster-issuer-approle \
18+
--state-values-set domain=demo-infra.sthings-vsphere.labul.sva.de \ --state-values-set bootstrapPassword={{ env "RANCHER_PASSWORD" | default "hall01234R@ncher" }} \
19+
--state-values-set cacerts=LS0tLS1CRUdJTiBDRV#..
20+
```
21+
22+
</details>
23+
924
<details><summary>HOMERUN-BASE-STACK</summary>
1025

1126
```bash
@@ -16,7 +31,7 @@ export genericPitcherToken=<GENERIC-TOKEN>
1631

1732
helmfile apply -f \
1833
git::https://github.com/stuttgart-things/helm.git@apps/apps/homerun-base-stack.yaml.gotmpl \
19-
--state-values-set redisStackStorageClass=openebs-hostpath\
34+
--state-values-set redisStackStorageClass=openebs-hostpath \
2035
--state-values-set genericPitcherDomain=demo-infra.example.com
2136
```
2237

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
---
2+
environments:
3+
default:
4+
values:
5+
- namespace: cattle-system
6+
- version: 2.13.0
7+
- hostname: rancher-things
8+
- domain: example.com
9+
- issuerKind: ClusterIssuer
10+
- issuerName: vault-approle
11+
- cacerts: ""
12+
- bootstrapPassword: "Adminpassword!123"
13+
- ingressClass: nginx
14+
- privateCA: true
15+
---
216
releases:
317
- name: rancher-configuration
418
disableValidationOnInstall: true
519
installed: true
620
namespace: {{ .Values.namespace }}
721
chart: stuttgart-things/sthings-cluster
8-
version: 0.3.10
22+
version: 0.3.15
923
values:
1024
- "values/rancher-config.values.yaml.gotmpl"
1125

@@ -14,15 +28,15 @@ releases:
1428
installed: true
1529
namespace: {{ .Values.namespace }}
1630
chart: rancher-stable/rancher
17-
version: 2.8.3
31+
version: {{ .Values.version }}
1832
needs:
1933
- cattle-system/rancher-configuration
2034
values:
2135
- "values/rancher-things.values.yaml.gotmpl"
2236

2337
repositories:
2438
- name: stuttgart-things
25-
url: eu.gcr.io/stuttgart-things
39+
url: ghcr.io/stuttgart-things
2640
oci: true
2741
- name: rancher-stable
2842
url: https://releases.rancher.com/server-charts/latest

apps/values/rancher-config.values.yaml.gotmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ customresources:
1111
dnsNames:
1212
- {{ .Values.hostname }}.{{ .Values.domain }}
1313
issuerRef:
14-
name: cluster-issuer-approle
15-
kind: ClusterIssuer
14+
name: {{ .Values.issuerName }}
15+
kind: {{ .Values.issuerKind }}
1616
secretName: {{ .Values.hostname }}-tls
1717

1818
secrets:

apps/values/rancher-things.values.yaml.gotmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ global:
66

77
bootstrapPassword: {{ .Values.bootstrapPassword }}
88
hostname: {{ .Values.hostname }}.{{ .Values.domain }}
9-
privateCA: true
9+
privateCA: {{ .Values.privateCA }}
10+
1011
ingress:
1112
enabled: true
12-
ingressClassName: nginx
13+
ingressClassName: {{ .Values.ingressClass }}
1314
servicePort: 80
1415
tls:
1516
source: secret

cicd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ helmfile apply -f argocd.yaml # APPLY HELMFILE
6464
### ARGOCD w/o VAULT PLUGIN + CERT CREATION OUTSIDE CERT-MANAGER
6565

6666
```bash
67-
helmfile apply -f /home/sthings/projects/apps/helm/cicd/argocd.yaml.gotmpl \
67+
helmfile apply -f git::https://github.com/stuttgart-things/helm.git@cicd/argocd.yaml.gotmpl \
6868
--state-values-set namespace=argocd \
6969
--state-values-set issuerName=cluster-issuer-approle \
7070
--state-values-set issuerKind=clusterIssuer \

0 commit comments

Comments
 (0)