github.com/projectcontour/contour@v1.28.2/site/content/examples/authdemo/01-prereq.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Namespace
     4  metadata:
     5    name: projectcontour-auth
     6  ---
     7  apiVersion: v1
     8  kind: ServiceAccount
     9  metadata:
    10    name: projectcontour-auth-htpasswd
    11    namespace: projectcontour-auth
    12  ---
    13  apiVersion: rbac.authorization.k8s.io/v1
    14  kind: ClusterRole
    15  metadata:
    16    name: projectcontour:authserver:htpasswd
    17    namespace: projectcontour-auth
    18  rules:
    19    - apiGroups:
    20        - ""
    21      resources:
    22        - secrets
    23      verbs:
    24        - get
    25        - list
    26        - watch
    27  ---
    28  apiVersion: rbac.authorization.k8s.io/v1
    29  kind: ClusterRoleBinding
    30  metadata:
    31    name: projectcontour:authserver:htpasswd
    32    namespace: projectcontour-auth
    33  roleRef:
    34    apiGroup: rbac.authorization.k8s.io
    35    kind: ClusterRole
    36    name: projectcontour:authserver:htpasswd
    37  subjects:
    38    - kind: ServiceAccount
    39      name: projectcontour-auth-htpasswd
    40      namespace: projectcontour-auth