Created
October 29, 2018 13:19
-
-
Save kerin/9d5a0c45e22a25806f1503ac5aa3b5ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REVISION: 1 | |
| RELEASED: Fri Oct 26 12:30:42 2018 | |
| CHART: rook-ceph-v0.8.3 | |
| USER-SUPPLIED VALUES: | |
| {} | |
| COMPUTED VALUES: | |
| hyperkube: | |
| pullPolicy: IfNotPresent | |
| repository: k8s.gcr.io/hyperkube | |
| tag: v1.7.12 | |
| image: | |
| prefix: rook | |
| pullPolicy: IfNotPresent | |
| repository: rook/ceph | |
| tag: v0.8.3 | |
| logLevel: INFO | |
| mon: | |
| healthCheckInterval: 45s | |
| monOutTimeout: 300s | |
| nodeSelector: null | |
| pspEnable: true | |
| rbacEnable: true | |
| resources: | |
| limits: | |
| cpu: 100m | |
| memory: 128Mi | |
| requests: | |
| cpu: 100m | |
| memory: 128Mi | |
| tolerations: [] | |
| HOOKS: | |
| MANIFEST: | |
| --- | |
| # Source: rook-ceph/templates/serviceaccount.yaml | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: rook-ceph-system | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| chart: "rook-ceph-v0.8.3" | |
| --- | |
| # Source: rook-ceph/templates/resources.yaml | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: clusters.ceph.rook.io | |
| spec: | |
| group: ceph.rook.io | |
| names: | |
| kind: Cluster | |
| listKind: ClusterList | |
| plural: clusters | |
| singular: cluster | |
| shortNames: | |
| - rcc | |
| scope: Namespaced | |
| version: v1beta1 | |
| --- | |
| # Source: rook-ceph/templates/resources.yaml | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: volumes.rook.io | |
| spec: | |
| group: rook.io | |
| names: | |
| kind: Volume | |
| listKind: VolumeList | |
| plural: volumes | |
| singular: volume | |
| shortNames: | |
| - rv | |
| scope: Namespaced | |
| version: v1alpha2 | |
| --- | |
| # Source: rook-ceph/templates/resources.yaml | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: pools.ceph.rook.io | |
| spec: | |
| group: ceph.rook.io | |
| names: | |
| kind: Pool | |
| listKind: PoolList | |
| plural: pools | |
| singular: pool | |
| shortNames: | |
| - rcp | |
| scope: Namespaced | |
| version: v1beta1 | |
| --- | |
| # Source: rook-ceph/templates/resources.yaml | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: objectstores.ceph.rook.io | |
| spec: | |
| group: ceph.rook.io | |
| names: | |
| kind: ObjectStore | |
| listKind: ObjectStoreList | |
| plural: objectstores | |
| singular: objectstore | |
| shortNames: | |
| - rco | |
| scope: Namespaced | |
| version: v1beta1 | |
| --- | |
| # Source: rook-ceph/templates/resources.yaml | |
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: filesystems.ceph.rook.io | |
| spec: | |
| group: ceph.rook.io | |
| names: | |
| kind: Filesystem | |
| listKind: FilesystemList | |
| plural: filesystems | |
| singular: filesystem | |
| shortNames: | |
| - rcfs | |
| scope: Namespaced | |
| version: v1beta1 | |
| --- | |
| # Source: rook-ceph/templates/clusterrole.yaml | |
| # The cluster role for managing the Rook CRDs | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRole | |
| metadata: | |
| name: rook-ceph-global | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| # Pod access is needed for fencing | |
| - pods | |
| # Node access is needed for determining nodes where mons should run | |
| - nodes | |
| - nodes/proxy | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - events | |
| # PVs and PVCs are managed by the Rook provisioner | |
| - persistentvolumes | |
| - persistentvolumeclaims | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - patch | |
| - create | |
| - update | |
| - delete | |
| - apiGroups: | |
| - storage.k8s.io | |
| resources: | |
| - storageclasses | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - apiGroups: | |
| - batch | |
| resources: | |
| - jobs | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - create | |
| - update | |
| - delete | |
| - apiGroups: | |
| - ceph.rook.io | |
| resources: | |
| - "*" | |
| verbs: | |
| - "*" | |
| - apiGroups: | |
| - rook.io | |
| resources: | |
| - "*" | |
| verbs: | |
| - "*" | |
| --- | |
| # Source: rook-ceph/templates/clusterrole.yaml | |
| # The cluster role for managing all the cluster-specific resources in a namespace | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRole | |
| metadata: | |
| name: rook-ceph-cluster-mgmt | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - secrets | |
| - pods | |
| - services | |
| - configmaps | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - patch | |
| - create | |
| - update | |
| - delete | |
| - apiGroups: | |
| - extensions | |
| resources: | |
| - deployments | |
| - daemonsets | |
| - replicasets | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - create | |
| - update | |
| - delete | |
| --- | |
| # Source: rook-ceph/templates/clusterrole.yaml | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRole | |
| metadata: | |
| name: rook-ceph-system-psp-user | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| chart: "rook-ceph-v0.8.3" | |
| rules: | |
| - apiGroups: | |
| - extensions | |
| resources: | |
| - podsecuritypolicies | |
| resourceNames: | |
| - 00-rook-ceph-operator | |
| verbs: | |
| - use | |
| --- | |
| # Source: rook-ceph/templates/clusterrolebinding.yaml | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: rook-ceph-system-psp-users | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| chart: "rook-ceph-v0.8.3" | |
| roleRef: | |
| apiGroup: rbac.authorization.k8s.io | |
| kind: ClusterRole | |
| name: rook-ceph-system-psp-user | |
| subjects: | |
| - kind: ServiceAccount | |
| name: rook-ceph-system | |
| namespace: rook-ceph-system | |
| --- | |
| # Source: rook-ceph/templates/clusterrolebinding.yaml | |
| # Grant the rook system daemons cluster-wide access to manage the Rook CRDs, PVCs, and storage classes | |
| kind: ClusterRoleBinding | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: rook-ceph-global | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| chart: "rook-ceph-v0.8.3" | |
| roleRef: | |
| apiGroup: rbac.authorization.k8s.io | |
| kind: ClusterRole | |
| name: rook-ceph-global | |
| subjects: | |
| - kind: ServiceAccount | |
| name: rook-ceph-system | |
| namespace: rook-ceph-system | |
| --- | |
| # Source: rook-ceph/templates/role.yaml | |
| # The role for the operator to manage resources in the system namespace | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: Role | |
| metadata: | |
| name: rook-ceph-system | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - pods | |
| - configmaps | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - patch | |
| - create | |
| - update | |
| - delete | |
| - apiGroups: | |
| - extensions | |
| resources: | |
| - daemonsets | |
| verbs: | |
| - get | |
| - list | |
| - watch | |
| - create | |
| - update | |
| - delete | |
| --- | |
| # Source: rook-ceph/templates/rolebinding.yaml | |
| # Grant the operator, agent, and discovery agents access to resources in the rook-ceph-system namespace | |
| kind: RoleBinding | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: rook-ceph-system | |
| namespace: rook-ceph-system | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| roleRef: | |
| apiGroup: rbac.authorization.k8s.io | |
| kind: Role | |
| name: rook-ceph-system | |
| subjects: | |
| - kind: ServiceAccount | |
| name: rook-ceph-system | |
| namespace: rook-ceph-system | |
| --- | |
| # Source: rook-ceph/templates/deployment.yaml | |
| apiVersion: apps/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: rook-ceph-operator | |
| labels: | |
| operator: rook | |
| storage-backend: ceph | |
| chart: "rook-ceph-v0.8.3" | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: rook-ceph-operator | |
| template: | |
| metadata: | |
| labels: | |
| app: rook-ceph-operator | |
| chart: "rook-ceph-v0.8.3" | |
| spec: | |
| containers: | |
| - name: rook-ceph-operator | |
| image: "rook/ceph:v0.8.3" | |
| imagePullPolicy: IfNotPresent | |
| args: ["ceph", "operator"] | |
| env: | |
| - name: ROOK_LOG_LEVEL | |
| value: INFO | |
| - name: NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: spec.nodeName | |
| - name: POD_NAME | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: metadata.name | |
| - name: POD_NAMESPACE | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: metadata.namespace | |
| - name: ROOK_MON_HEALTHCHECK_INTERVAL | |
| value: 45s | |
| - name: ROOK_MON_OUT_TIMEOUT | |
| value: 300s | |
| resources: | |
| limits: | |
| cpu: 100m | |
| memory: 128Mi | |
| requests: | |
| cpu: 100m | |
| memory: 128Mi | |
| serviceAccountName: rook-ceph-system | |
| --- | |
| # Source: rook-ceph/templates/psp.yaml | |
| # PSP for rook-ceph-operator | |
| # Most of the teams follow the kubernetes docs and have these PSPs. | |
| # * privileged (for kube-system namespace) | |
| # * restricted (for all logged in users) | |
| # | |
| # If we name it as `rook-ceph-operator`, it comes next to `restricted` PSP alphabetically, | |
| # and applies `restricted` capabilities to `rook-system`. Thats reason this is named with `00-rook-ceph-operator`, | |
| # so it stays somewhere close to top and `rook-system` gets the intended PSP. | |
| # | |
| # More info on PSP ordering : https://kubernetes.io/docs/concepts/policy/pod-security-policy/#policy-order | |
| apiVersion: extensions/v1beta1 | |
| kind: PodSecurityPolicy | |
| metadata: | |
| name: 00-rook-ceph-operator | |
| spec: | |
| fsGroup: | |
| rule: RunAsAny | |
| privileged: true | |
| runAsUser: | |
| rule: RunAsAny | |
| seLinux: | |
| rule: RunAsAny | |
| supplementalGroups: | |
| rule: RunAsAny | |
| volumes: | |
| - '*' | |
| allowedCapabilities: | |
| - '*' | |
| hostPID: true | |
| hostIPC: true | |
| hostNetwork: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment