跳到正文
LEo的网络日志
返回

argocd使用tips

kubectl config get-contexts -o name
argocd cluster add admin --name soli-mc
argocd cluster list
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/applicationset/v0.3.0/manifests/install.yaml
...
  source:
    path: ignore-files
    repoURL: 'https://github.com/songleo/argocd-demo.git'
    targetRevision: HEAD
    directory:
      recurse: true
      exclude: 'svc.yaml'
...
...
argocd.argoproj.io/compare-options: IgnoreExtraneous
...
    avp.kubernetes.io/path: "/path/data/key"
    avp.kubernetes.io/secret-version: "5"
...
data:
  configManagementPlugins: |
    - name: updateReplicas
      init:
        command: [sh, -c, 'sed -i "s/replicas: 2/replicas: 1/" hostname.yaml']
      generate:
        command: [sh, -c, 'cat hostname.yaml']
      lockRepo: true
...
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "-1"

:) 未完待续…



上一篇
在kubernetes中配置vector收集pod日志
下一篇
使用vector收集pod日志并转发到prometheus remote write