diff --git a/kubernetes/argocd/stacks/common/marketplace.yml b/kubernetes/argocd/stacks/common/marketplace.yml new file mode 100644 index 0000000..c329ff2 --- /dev/null +++ b/kubernetes/argocd/stacks/common/marketplace.yml @@ -0,0 +1,33 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: marketplace + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: marketplace + server: 'https://kubernetes.default.svc' + sources: + - repoURL: 'https://acm.cs.uic.edu/helm' + targetRevision: 0.1.3 + chart: 'marketplace' + path: 'helm' + helm: + valueFiles: + - $values/kubernetes/argocd/stacks/marketplace/values.yml + - path: kubernetes/argocd/stacks/marketplace + repoURL: 'git@github.com:acm-uic/IaC.git' + targetRevision: feature/marketplace + ref: values + directory: + recurse: true + include: '*.yml' + exclude: values.yml + project: sigweb + syncPolicy: + automated: + prune: true + selfHeal: true + diff --git a/kubernetes/argocd/stacks/common/projects.yml b/kubernetes/argocd/stacks/common/projects.yml new file mode 100644 index 0000000..ca131eb --- /dev/null +++ b/kubernetes/argocd/stacks/common/projects.yml @@ -0,0 +1,21 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: sigweb + namespace: argocd +spec: + clusterResourceWhitelist: + - group: '*' + kind: '*' + destinations: + - namespace: '*' + server: '*' + sourceRepos: + - 'git@github.com:acm-uic/IaC.git' + - 'https://acm.cs.uic.edu/helm' + roles: + # A role which provides read-only access to all applications in the project + - name: read-only + description: Read-only privileges to sigweb + diff --git a/kubernetes/argocd/stacks/marketplace/marketplace.yml b/kubernetes/argocd/stacks/marketplace/marketplace.yml new file mode 100644 index 0000000..da45bbd --- /dev/null +++ b/kubernetes/argocd/stacks/marketplace/marketplace.yml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: marketplace diff --git a/kubernetes/argocd/stacks/marketplace/values.yml b/kubernetes/argocd/stacks/marketplace/values.yml new file mode 100644 index 0000000..c24ca87 --- /dev/null +++ b/kubernetes/argocd/stacks/marketplace/values.yml @@ -0,0 +1,6 @@ +--- +persistence: + accessModes: + - ReadWriteMany +imagePullSecrets: + - name: pull-creds