From f624d485b9bc5dbce295f38776f70a70b7a5fc6c Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Wed, 29 May 2024 21:17:25 +0200 Subject: [PATCH] initial commit --- .gitignore | 3 ++ README.md | 1 + app-files/apps.yaml | 70 +++++++++++++++++++++++++++++++++++++++++++++ argocd/cm.yaml | 35 +++++++++++++++++++++++ argocd/ingress.yaml | 24 ++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 app-files/apps.yaml create mode 100644 argocd/cm.yaml create mode 100644 argocd/ingress.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e70443f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +**/secrets.yaml +**/secret.yaml +**/.DS_Store \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..696e5f0 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +k8s deployments that run in my vcluster \ No newline at end of file diff --git a/app-files/apps.yaml b/app-files/apps.yaml new file mode 100644 index 0000000..5549813 --- /dev/null +++ b/app-files/apps.yaml @@ -0,0 +1,70 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: k8s-deployments-self + namespace: argocd +spec: + project: default + source: + repoURL: https://git.ar21.de/aaron/k8s-deployments.git + targetRevision: HEAD + path: "app-files" + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: false +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argocd-ingress + namespace: argocd +spec: + project: default + source: + repoURL: https://git.ar21.de/aaron/k8s-deployments.git + targetRevision: HEAD + path: argocd + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: drone-runner + namespace: argocd +spec: + project: default + source: + - chart: drone/drone-runner-kube + repoURL: https://charts.drone.io + targetRevision: 0.1.10 + helm: + releaseName: drone-runner + values: | + extraSecretNamesForEnvFrom: + - drone-secrets + rbac: + buildNamespaces: + - drone + env: + DRONE_RPC_HOST: https://drone.ar21.de + DRONE_RPC_PROTO: https + DRONE_NAMESPACE_DEFAULT: drone + destination: + server: https://kubernetes.default.svc + namespace: drone + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + prune: false diff --git a/argocd/cm.yaml b/argocd/cm.yaml new file mode 100644 index 0000000..ac7cc39 --- /dev/null +++ b/argocd/cm.yaml @@ -0,0 +1,35 @@ +--- +kind: ConfigMap +apiVersion: v1 +metadata: + name: argocd-cm + namespace: argocd + labels: + app.kubernetes.io/name: argocd-cm + app.kubernetes.io/part-of: argocd +data: + statusbadge.enabled: "true" + resource.customizations: | + networking.k8s.io/Ingress: + health.lua: | + hs = {} + hs.status = "Healthy" + return hs + resource.exclusions: | + - apiGroups: + - cilium.io + kinds: + - CiliumIdentity + clusters: + - "*" +--- +kind: ConfigMap +apiVersion: v1 +metadata: + name: argocd-cmd-params-cm + namespace: argocd + labels: + app.kubernetes.io/name: argocd-cm + app.kubernetes.io/part-of: argocd +data: + server.insecure: "true" diff --git a/argocd/ingress.yaml b/argocd/ingress.yaml new file mode 100644 index 0000000..47c654f --- /dev/null +++ b/argocd/ingress.yaml @@ -0,0 +1,24 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + kubernetes.io/tls-acme: "true" + name: argocd-ingress + namespace: argocd +spec: + rules: + - host: "aaron-argo.services.yolokube.de" + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: argocd-server + port: + number: 80 + tls: + - hosts: + - aaron-argo.services.yolokube.de + secretName: argocd-tls-key