github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/neon/crds/multus-crd.yaml (about)

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    name: network-attachment-definitions.k8s.cni.cncf.io
     5  spec:
     6    group: k8s.cni.cncf.io
     7    names:
     8      kind: NetworkAttachmentDefinition
     9      plural: network-attachment-definitions
    10      shortNames:
    11      - net-attach-def
    12      singular: network-attachment-definition
    13    scope: Namespaced
    14    versions:
    15    - name: v1
    16      schema:
    17        openAPIV3Schema:
    18          description: 'NetworkAttachmentDefinition is a CRD schema specified by the
    19            Network Plumbing Working Group to express the intent for attaching pods
    20            to one or more logical or physical networks. More information available
    21            at: https://github.com/k8snetworkplumbingwg/multi-net-spec'
    22          properties:
    23            apiVersion:
    24              description: 'APIVersion defines the versioned schema of this represen
    25                tation of an object. Servers should convert recognized schemas to the
    26                latest internal value, and may reject unrecognized values. More info:
    27                https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    28              type: string
    29            kind:
    30              description: 'Kind is a string value representing the REST resource this
    31                object represents. Servers may infer this from the endpoint the client
    32                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    33              type: string
    34            metadata:
    35              type: object
    36            spec:
    37              description: NetworkAttachmentDefinition spec defines the desired state
    38                of a network attachment
    39              properties:
    40                config:
    41                  description: NetworkAttachmentDefinition config is a JSON-formatted
    42                    CNI configuration
    43                  type: string
    44              type: object
    45          type: object
    46      served: true
    47      storage: true
    48  ---
    49  apiVersion: v1
    50  kind: ServiceAccount
    51  metadata:
    52    name: multus
    53    namespace: kube-system
    54  ---
    55  apiVersion: rbac.authorization.k8s.io/v1
    56  kind: ClusterRole
    57  metadata:
    58    name: multus
    59  rules:
    60  - apiGroups:
    61    - k8s.cni.cncf.io
    62    resources:
    63    - '*'
    64    verbs:
    65    - '*'
    66  - apiGroups:
    67    - ""
    68    resources:
    69    - pods
    70    - pods/status
    71    verbs:
    72    - get
    73    - update
    74  - apiGroups:
    75    - ""
    76    - events.k8s.io
    77    resources:
    78    - events
    79    verbs:
    80    - create
    81    - patch
    82    - update
    83  ---
    84  apiVersion: rbac.authorization.k8s.io/v1
    85  kind: ClusterRoleBinding
    86  metadata:
    87    name: multus
    88  roleRef:
    89    apiGroup: rbac.authorization.k8s.io
    90    kind: ClusterRole
    91    name: multus
    92  subjects:
    93  - kind: ServiceAccount
    94    name: multus
    95    namespace: kube-system