Argocd plus bash fix
This commit is contained in:
parent
cf50cc24b1
commit
635902b40f
4 changed files with 67 additions and 0 deletions
17
manifests/apps/infra-app-of-apps.yaml
Normal file
17
manifests/apps/infra-app-of-apps.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: infra-app-of-apps
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: argocd
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: infra
|
||||||
|
source:
|
||||||
|
path: apps/infra-app-of-apps.yaml
|
||||||
|
repoURL: https://gitlab.wikimedia.org/martynranyard/cloud-dev-cluster.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
23
manifests/kustomize/argocd/kustomization.yaml
Normal file
23
manifests/kustomize/argocd/kustomization.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- https://raw.githubusercontent.com/argoproj/argo-cd/refs/tags/v3.3.9/manifests/install.yaml
|
||||||
|
|
||||||
|
patches:
|
||||||
|
- patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /data
|
||||||
|
value:
|
||||||
|
kustomize.buildOptions: --enable-helm
|
||||||
|
resource.exclusions: |
|
||||||
|
- apiGroups:
|
||||||
|
- cilium.io
|
||||||
|
kinds:
|
||||||
|
- CiliumIdentity
|
||||||
|
clusters:
|
||||||
|
- "*"
|
||||||
|
target:
|
||||||
|
version: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
name: argocd-cm
|
||||||
21
manifests/projects/infra.yaml
Normal file
21
manifests/projects/infra.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: app-of-apps
|
||||||
|
name: infra
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
||||||
|
clusterResourceBlacklist:
|
||||||
|
- group: cilium.io
|
||||||
|
kind: CiliumIdentity
|
||||||
|
description: argo, nginx-ingress, etc.
|
||||||
|
destinations:
|
||||||
|
- name: '*'
|
||||||
|
namespace: '*'
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
sourceRepos:
|
||||||
|
- https://gitlab.wikimedia.org/martynranyard/cloud-dev-cluster.git
|
||||||
6
scripts/initial_argo_install
Executable file
6
scripts/initial_argo_install
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
KUBECONFIG=$(dirname $(realpath $0))/../kubeconfig
|
||||||
|
kubectl --kubeconfig=$KUBECONFIG create ns argocd
|
||||||
|
cd $(dirname $(realpath $0))/../manifests/kustomize/argocd
|
||||||
|
kustomize build | kubectl --kubeconfig=$KUBECONFIG --namespace argocd apply -f - --server-side
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue