1) Integrating with helm package
Ý tưởng là mình sẽ sử dụng Kind: Application of Argocd để tạo bất kì workload nào dựa trên helm public
Links:
https://argo-cd.readthedocs.io/en/stable/user-guide/helm/#build-environment
https://stackoverflow.com/questions/73130776/how-do-i-set-helm-values-not-files-in-argocd-application-spec
Đấy example config để mình create kubecost
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kubecost-xxxxx-staging
namespace: argocd
spec:
destination:
namespace: kubecost
name: 'arn:aws:eks:us-west-2:3133xxxxxx:cluster/staging-xxxxxx'
project: meta-structure
source:
repoURL: https://kubecost.github.io/cost-analyzer
targetRevision: "1.98.0"
chart: cost-analyzer
helm:
values: |
kubecostMetrics:
exporter:
nodeSelector:
kubernetes.io/os: linux
Việc sử dụng values mình sẽ cập nhật thêm.
2) Integrating with helm package
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: smb-server-nimtechnology-staging
namespace: argocd
spec:
destination:
namespace: nimtechnology-engines-staging
name: 'arn:aws:eks:us-west-2:3133XXXX340:cluster/nimtechnology-mdcl-nimtechnology-engines'
project: meta-structure
source:
path: meta-structure/helm-charts/smb-storageclass
repoURL: git@bitbucket.org:metascan/mdce-nimtechnology-argo
targetRevision: meta-structure
helm:
valueFiles:
- values.yaml
values: |-
storageClass:
enabled: true