2021-08-25 14:01:02 +00:00
|
|
|
{{- if .Values.installKubeZero }}
|
|
|
|
# Add KubeZero app and project
|
|
|
|
|
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
|
|
kind: AppProject
|
|
|
|
metadata:
|
|
|
|
name: kubezero
|
|
|
|
namespace: argocd
|
|
|
|
labels:
|
|
|
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
description: KubeZero - ZeroDownTime Kubernetes Platform
|
|
|
|
|
2021-08-29 22:28:32 +00:00
|
|
|
# Add the git repo used for git-sync
|
2021-08-25 14:01:02 +00:00
|
|
|
sourceRepos:
|
2021-08-29 22:28:32 +00:00
|
|
|
- {{ .Values.kubezero.repoURL }}
|
|
|
|
{{ with .Values.kubezero.gitSync.repoURL }}
|
|
|
|
- {{ . }}
|
2021-08-25 14:01:02 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
# platform namespaces in the local cluster
|
|
|
|
destinations:
|
|
|
|
- namespace: argocd
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
- namespace: kube-system
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
- namespace: cert-manager
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
- namespace: istio-system
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
- namespace: istio-ingress
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
- namespace: monitoring
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
- namespace: elastic-system
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
- namespace: logging
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
|
|
|
|
clusterResourceWhitelist:
|
|
|
|
- group: '*'
|
|
|
|
kind: '*'
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
|
|
kind: Application
|
|
|
|
metadata:
|
2021-08-29 22:28:32 +00:00
|
|
|
name: kubezero-git-sync
|
2021-08-25 14:01:02 +00:00
|
|
|
namespace: argocd
|
|
|
|
labels:
|
|
|
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
project: kubezero
|
|
|
|
source:
|
2021-08-29 22:28:32 +00:00
|
|
|
repoURL: {{ .Values.kubezero.gitSync.repoURL }}
|
|
|
|
targetRevision: {{ .Values.kubezero.gitSync.targetRevision }}
|
|
|
|
path: {{ .Values.kubezero.gitSync.path }}
|
2021-08-25 14:01:02 +00:00
|
|
|
|
2021-08-30 12:12:50 +00:00
|
|
|
directory:
|
|
|
|
recurse: true
|
2021-08-25 14:01:02 +00:00
|
|
|
|
|
|
|
destination:
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
namespace: argocd
|
|
|
|
|
2021-08-30 12:12:50 +00:00
|
|
|
{{- with .Values.kubezero.syncPolicy }}
|
2021-08-25 14:01:02 +00:00
|
|
|
syncPolicy:
|
2021-08-30 12:12:50 +00:00
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2021-08-25 14:01:02 +00:00
|
|
|
{{- end }}
|