ArgoCD 使用示例

发布时间: 更新时间: 总字数:109 阅读时间:1m 作者: 分享 复制网址

ArgoCD 使用示例

示例

权限

https://github.com/argoproj/argo-workflows/blob/master/manifests/quick-start/sso/overlays/argo-server-sa.yaml

AppProject

  • 创建一个 Project 并指定 role
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
  name: abc
  namespace: argocd
  finalizers:
  - resources-finalizer.argocd.argoproj.io
spec:
  clusterResourceWhitelist:
  - group: '*'
    kind: '*'
  namespaceResourceWhitelist:
  - group: '*'
    kind: '*'
  description: abc Team AppProject
  destinations:
  - name: in-cluster
    namespace: argocd
    server: https://kubernetes.default.svc
  - name: in-cluster
    namespace: abc
    server: https://kubernetes.default.svc
  roles:
  - name: admin
    description: admin privileges to abc
    groups:
    - <some-group>
    policies:
    - p, proj:abc:admin, applications, *, abc/*, allow
  - name: readonly
    description: Read-only privileges to abc
    groups:
    - <some-group>
    policies:
    - p, proj:abc:readonly, applications, get, abc/*, allow
  sourceRepos:
  - https://github.com/xiexianbin/k8s-manifests.git
Home Archives Categories Tags Statistics
本文总阅读量 次 本站总访问量 次 本站总访客数