diff --git a/.drone.yml b/.drone.yml index 5725752..857c6f3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,7 +20,6 @@ steps: from_secret: gitea_password ARGO_TOKEN: from_secret: argo_token - # TODO - step to apply manifests image_pull_secrets: - dockerconfigjson diff --git a/README.md b/README.md index 55c3587..bd1e218 100644 --- a/README.md +++ b/README.md @@ -14,18 +14,9 @@ $ curl --user : -X POST --upload-file ./.tgz https: ### Installation -```bash -$ helm repo add --username --password https://hostname.of.gitea/api/packages//helm -$ helm install / -``` - -and/or - -```bash -$ kubectl apply -f application-manifests.yaml -``` +Bootstrap with `kubectl apply -f main-manifest.yaml` -TODO: [App-of-apps](https://argo-cd.readthedocs.io/en/stable/operator-manual/cluster-bootstrapping/#app-of-apps-pattern) to manage whole-cluster configuration. +TODO: [App-of-apps](https://argo-cd.readthedocs.io/en/stable/operator-manual/cluster-bootstrapping/#app-of-apps-pattern) to manage whole-cluster configuration in a more programmatic way. ## Other links diff --git a/app-of-apps/Chart.yaml b/app-of-apps/Chart.yaml new file mode 100644 index 0000000..fd6c6fd --- /dev/null +++ b/app-of-apps/Chart.yaml @@ -0,0 +1,7 @@ +apiVersion: v2 +name: jackjack-app-of-apps +description: App-of-apps for deployment to Homelab + +type: application +version: 0.1.0 +appVersion: "0.1.0" diff --git a/application-manifests.yaml b/app-of-apps/templates/apps.yaml similarity index 98% rename from application-manifests.yaml rename to app-of-apps/templates/apps.yaml index 506f379..a2eb5e3 100644 --- a/application-manifests.yaml +++ b/app-of-apps/templates/apps.yaml @@ -122,11 +122,11 @@ spec: - name: image.tag value: "9.3.2" - name: ingress.enabled - value: true + value: "true" - name: ingress.hosts[0] value: grafana.avril - name: persistence.enabled - value: true + value: "true" - name: persistence.storageClassName value: longhorn diff --git a/main-manifest.yaml b/main-manifest.yaml new file mode 100644 index 0000000..8f8b057 --- /dev/null +++ b/main-manifest.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: jackjack-app-of-apps + namespace: argo +spec: + project: default + + source: + repoURL: https://gitea.scubbo.org/scubbo/helm-charts.git + targetRevision: HEAD + path: app-of-apps + + destination: + server: "https://kubernetes.default.svc" + namespace: default + + syncPolicy: + automated: + prune: true + syncOptions: + - CreateNamespace=true