ArgoCD 使用示例

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

ArgoCD 使用示例

示例

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