Skip to content

Commit

Permalink
Add ArgoCD installation chart
Browse files Browse the repository at this point in the history
Uses kustomize to deploy argoCD helm chart
  • Loading branch information
pratik705 committed Feb 6, 2024
1 parent a44a622 commit 46f855a
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/kustomize-argocd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Kustomize GitHub Actions for argocd

on:
pull_request:
paths:
- kustomize/argocd/**
- .github/workflows/kustomize-argocd.yaml
jobs:
kustomize:
strategy:
matrix:
overlays:
- base
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- name: Kustomize Install
working-directory: /usr/local/bin/
run: |
if [ ! -f /usr/local/bin/kustomize ]; then
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash
fi
- name: Run Kustomize Build
run: |
kustomize build kustomize/argocd/${{ matrix.overlays }} --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml
- name: Return Kustomize Build
uses: actions/upload-artifact@v2
with:
name: kustomize-argocd-artifact-${{ matrix.overlays }}
path: /tmp/rendered.yaml
22 changes: 22 additions & 0 deletions kustomize/argocd/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resources:
- namespace.yaml

namespace: argocd1
helmGlobals:
chartHome: ../charts/
helmCharts:
- name: argo-cd
includeCRDs: true
valuesFile: values.yaml
releaseName: argocd
version: 5.51.5
repo: https://argoproj.github.io/argo-helm
patches:
- target:
kind: Pod
patch: |-
$patch: delete
apiVersion: v1
kind: Pod
metadata:
name: argocd-redis-ha-service-test
8 changes: 8 additions & 0 deletions kustomize/argocd/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: argocd
name: argocd
name: argocd
40 changes: 40 additions & 0 deletions kustomize/argocd/base/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
global:
nodeSelector:
openstack-control-plane: enabled

redis-ha:
enabled: true
nodeSelector:
openstack-control-plane: enabled

controller:
replicas: 1

configs:
cm:
kustomize.buildOptions: --enable-helm

server:
autoscaling:
enabled: true
minReplicas: 2
ingress:
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
enabled: true
ingressClassName: "nginx-cluster"
hosts: ["argocd.dfw-ospcv2-staging.ohthree.com"]
tls:
- hosts:
- argocd.dfw-ospcv2-staging.ohthree.com
secretName: argocd-tls-public
https: true

repoServer:
autoscaling:
enabled: true
minReplicas: 2

applicationSet:
replicas: 2

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
deployment:
mode: namespace
mode: cluster
type: Deployment
cluster:
class: "nginx-openstack"
Expand Down

0 comments on commit 46f855a

Please sign in to comment.