From 5dc7cd6b02cb02ce751e8cf6d3bffb72152c1806 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Wed, 28 Nov 2018 16:08:24 +0100 Subject: [PATCH] Upload crds, controller and other manifest from the machine-api-operator repo --- README.md | 18 +- config/controllers/deployment.yaml | 75 +++++++++ config/crds/cluster.crd.yaml | 92 +++++++++++ config/crds/machine.crd.yaml | 91 ++++++++++ config/crds/machinedeployment.crd.yaml | 120 ++++++++++++++ config/crds/machineset.crd.yaml | 102 ++++++++++++ config/default/kustomization.yaml | 10 +- config/rbac/rbac_role.yaml | 24 ++- config/rbac/rbac_role_binding.yaml | 7 +- examples/cluster-api-server.yaml | 220 ------------------------- examples/provider-components.yml | 100 ----------- 11 files changed, 523 insertions(+), 336 deletions(-) create mode 100644 config/controllers/deployment.yaml create mode 100644 config/crds/cluster.crd.yaml create mode 100644 config/crds/machine.crd.yaml create mode 100644 config/crds/machinedeployment.crd.yaml create mode 100644 config/crds/machineset.crd.yaml delete mode 100644 examples/cluster-api-server.yaml delete mode 100644 examples/provider-components.yml diff --git a/README.md b/README.md index 4ec7c7777b..46566fde33 100644 --- a/README.md +++ b/README.md @@ -91,14 +91,24 @@ Note: this info is RH only, it needs to be backported every time the `README.md` $ kubectl apply -f examples/addons.yaml ``` - Deploy the components: + Deploy CRDs: ```sh - $ kubectl apply -f examples/cluster-api-server.yaml - $ kubectl apply -f examples/provider-components.yml + $ kubectl apply -f config/crd/machine.crd.yaml + $ kubectl apply -f config/crd/machineset.crd.yaml + $ kubectl apply -f config/crd/machinedeployment.crd.yaml + $ kubectl apply -f config/crd/cluster.crd.yaml ``` - Deploy the cluster manigest: + Deploy machine API controllers: + + ```sh + $ kubectl apply -f config/rbac/rbac_role.yaml + $ kubectl apply -f config/rbac/rbac_role_binding.yaml + $ kubectl apply -f config/controllers/deployment.yaml + ``` + + Deploy the cluster manifest: ```sh $ kubectl apply -f examples/cluster.yaml ``` diff --git a/config/controllers/deployment.yaml b/config/controllers/deployment.yaml new file mode 100644 index 0000000000..109e92e33d --- /dev/null +++ b/config/controllers/deployment.yaml @@ -0,0 +1,75 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: clusterapi-manager-controllers + namespace: test + labels: + api: clusterapi + k8s-app: controller + tectonic-operators.coreos.com/managed-by: machine-api-operator +spec: + securityContext: + runAsNonRoot: true + runAsUser: 65534 + selector: + matchLabels: + api: clusterapi + k8s-app: controller + replicas: 1 + template: + metadata: + labels: + api: clusterapi + k8s-app: controller + spec: + nodeSelector: + node-role.kubernetes.io/master: "" + tolerations: + - effect: NoSchedule + key: node-role.kubernetes.io/master + - key: CriticalAddonsOnly + operator: Exists + - effect: NoExecute + key: node.alpha.kubernetes.io/notReady + operator: Exists + - effect: NoExecute + key: node.alpha.kubernetes.io/unreachable + operator: Exists + containers: + - name: controller-manager + image: openshift/origin-aws-machine-controllers:v4.0.0 + command: + - "./manager" + resources: + requests: + cpu: 100m + memory: 20Mi + limits: + cpu: 100m + memory: 30Mi + - name: machine-controller + image: openshift/origin-aws-machine-controllers:v4.0.0 + env: + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName + command: + - /machine-controller-manager + args: + - --logtostderr=true + - --v=3 + - name: nodelink-controller + image: openshift/origin-machine-api-operator:latest + command: + - /nodelink-controller + args: + - --logtostderr=true + - --v=3 + resources: + requests: + cpu: 100m + memory: 20Mi + limits: + cpu: 100m + memory: 30Mi diff --git a/config/crds/cluster.crd.yaml b/config/crds/cluster.crd.yaml new file mode 100644 index 0000000000..d60fd49b43 --- /dev/null +++ b/config/crds/cluster.crd.yaml @@ -0,0 +1,92 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + controller-tools.k8s.io: "1.0" + name: clusters.cluster.k8s.io +spec: + group: cluster.k8s.io + names: + kind: Cluster + plural: clusters + scope: Namespaced + subresources: + status: {} + validation: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + clusterNetwork: + properties: + pods: + properties: + cidrBlocks: + items: + type: string + type: array + required: + - cidrBlocks + type: object + serviceDomain: + type: string + services: + properties: + cidrBlocks: + items: + type: string + type: array + required: + - cidrBlocks + type: object + required: + - services + - pods + - serviceDomain + type: object + providerConfig: + properties: + value: + type: object + valueFrom: + type: object + type: object + required: + - clusterNetwork + type: object + status: + properties: + apiEndpoints: + items: + properties: + host: + type: string + port: + format: int64 + type: integer + required: + - host + - port + type: object + type: array + errorMessage: + type: string + errorReason: + type: string + providerStatus: + type: object + type: object + version: v1alpha1 +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/config/crds/machine.crd.yaml b/config/crds/machine.crd.yaml new file mode 100644 index 0000000000..937e446501 --- /dev/null +++ b/config/crds/machine.crd.yaml @@ -0,0 +1,91 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + controller-tools.k8s.io: "1.0" + name: machines.cluster.k8s.io +spec: + group: cluster.k8s.io + names: + kind: Machine + plural: machines + scope: Namespaced + subresources: + status: {} + validation: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + configSource: + type: object + metadata: + type: object + providerConfig: + properties: + value: + type: object + valueFrom: + type: object + type: object + taints: + items: + type: object + type: array + versions: + properties: + controlPlane: + type: string + kubelet: + type: string + required: + - kubelet + type: object + required: + - providerConfig + type: object + status: + properties: + addresses: + items: + type: object + type: array + conditions: + items: + type: object + type: array + errorMessage: + type: string + errorReason: + type: string + lastUpdated: + format: date-time + type: string + nodeRef: + type: object + providerStatus: + type: object + versions: + properties: + controlPlane: + type: string + kubelet: + type: string + required: + - kubelet + type: object + type: object + version: v1alpha1 +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/config/crds/machinedeployment.crd.yaml b/config/crds/machinedeployment.crd.yaml new file mode 100644 index 0000000000..f0646ad614 --- /dev/null +++ b/config/crds/machinedeployment.crd.yaml @@ -0,0 +1,120 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + controller-tools.k8s.io: "1.0" + name: machinedeployments.cluster.k8s.io +spec: + group: cluster.k8s.io + names: + kind: MachineDeployment + plural: machinedeployments + scope: Namespaced + subresources: + status: {} + validation: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + minReadySeconds: + format: int32 + type: integer + paused: + type: boolean + progressDeadlineSeconds: + format: int32 + type: integer + replicas: + format: int32 + type: integer + revisionHistoryLimit: + format: int32 + type: integer + selector: + type: object + strategy: + properties: + rollingUpdate: + properties: + maxSurge: + type: object + maxUnavailable: + type: object + type: object + type: + type: string + type: object + template: + properties: + metadata: + type: object + spec: + properties: + configSource: + type: object + metadata: + type: object + providerConfig: + properties: + value: + type: object + valueFrom: + type: object + type: object + taints: + items: + type: object + type: array + versions: + properties: + controlPlane: + type: string + kubelet: + type: string + required: + - kubelet + type: object + required: + - providerConfig + type: object + type: object + required: + - selector + - template + type: object + status: + properties: + availableReplicas: + format: int32 + type: integer + observedGeneration: + format: int64 + type: integer + readyReplicas: + format: int32 + type: integer + replicas: + format: int32 + type: integer + unavailableReplicas: + format: int32 + type: integer + updatedReplicas: + format: int32 + type: integer + type: object + version: v1alpha1 +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/config/crds/machineset.crd.yaml b/config/crds/machineset.crd.yaml new file mode 100644 index 0000000000..04cd835845 --- /dev/null +++ b/config/crds/machineset.crd.yaml @@ -0,0 +1,102 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + controller-tools.k8s.io: "1.0" + name: machinesets.cluster.k8s.io +spec: + group: cluster.k8s.io + names: + kind: MachineSet + plural: machinesets + scope: Namespaced + subresources: + status: {} + validation: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + spec: + properties: + minReadySeconds: + format: int32 + type: integer + replicas: + format: int32 + type: integer + selector: + type: object + template: + properties: + metadata: + type: object + spec: + properties: + configSource: + type: object + metadata: + type: object + providerConfig: + properties: + value: + type: object + valueFrom: + type: object + type: object + taints: + items: + type: object + type: array + versions: + properties: + controlPlane: + type: string + kubelet: + type: string + required: + - kubelet + type: object + required: + - providerConfig + type: object + type: object + required: + - selector + type: object + status: + properties: + availableReplicas: + format: int32 + type: integer + errorMessage: + type: string + errorReason: + type: string + fullyLabeledReplicas: + format: int32 + type: integer + observedGeneration: + format: int64 + type: integer + readyReplicas: + format: int32 + type: integer + replicas: + format: int32 + type: integer + required: + - replicas + type: object + version: v1alpha1 +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index 34c8d23e72..6d8ee203b1 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -18,9 +18,13 @@ namePrefix: migration- # YAML string, with resources separated by document # markers ("---"). resources: +- ../crds/machine.crd.yaml +- ../crds/machineset.crd.yaml +- ../crds/machinedeployment.crd.yaml +- ../crds/cluster.crd.yaml - ../rbac/rbac_role.yaml - ../rbac/rbac_role_binding.yaml -- ../manager/manager.yaml +- ../controllers/deployment.yaml -patches: -- manager_image_patch.yaml +#patches: +#- manager_image_patch.yaml diff --git a/config/rbac/rbac_role.yaml b/config/rbac/rbac_role.yaml index acc519de9a..0ec40df288 100644 --- a/config/rbac/rbac_role.yaml +++ b/config/rbac/rbac_role.yaml @@ -2,12 +2,19 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: creationTimestamp: null - name: manager-role + name: cluster-api-manager-role rules: - apiGroups: - - apps + - cluster.k8s.io resources: - - deployments + - clusters + - clusters/status + - machines + - machines/status + - machinesets + - machinesets/status + - machinedeployments + - machinedeployments/status verbs: - get - list @@ -17,9 +24,9 @@ rules: - patch - delete - apiGroups: - - awsproviderconfig.k8s.io + - "" resources: - - awsmachineproviderconfigs + - nodes verbs: - get - list @@ -28,3 +35,10 @@ rules: - update - patch - delete + +- apiGroups: + - healthchecking.openshift.io + resources: + - '*' + verbs: + - '*' diff --git a/config/rbac/rbac_role_binding.yaml b/config/rbac/rbac_role_binding.yaml index c1033e23fb..52ac059065 100644 --- a/config/rbac/rbac_role_binding.yaml +++ b/config/rbac/rbac_role_binding.yaml @@ -1,13 +1,12 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - creationTimestamp: null - name: manager-rolebinding + name: cluster-api-manager-rolebinding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: manager-role + name: cluster-api-manager-role subjects: - kind: ServiceAccount name: default - namespace: system + namespace: test diff --git a/examples/cluster-api-server.yaml b/examples/cluster-api-server.yaml deleted file mode 100644 index 657b9cac22..0000000000 --- a/examples/cluster-api-server.yaml +++ /dev/null @@ -1,220 +0,0 @@ -apiVersion: apiregistration.k8s.io/v1beta1 -kind: APIService -metadata: - name: v1alpha1.cluster.k8s.io - labels: - api: clusterapi - apiserver: "true" -spec: - version: v1alpha1 - group: cluster.k8s.io - groupPriorityMinimum: 2000 - priority: 200 - service: - name: clusterapi - namespace: default - versionPriority: 10 - caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM5RENDQWR5Z0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFyTVNrd0p3WURWUVFERXlCamJIVnoKZEdWeVlYQnBMV05sY25ScFptbGpZWFJsTFdGMWRHaHZjbWwwZVRBZUZ3MHhPREE0TURreE5EUXhOVFZhRncweQpPREE0TURZeE5EUXhOVFZhTUNzeEtUQW5CZ05WQkFNVElHTnNkWE4wWlhKaGNHa3RZMlZ5ZEdsbWFXTmhkR1V0CllYVjBhRzl5YVhSNU1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUV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UlRJRklDQVRFLS0tLS0K ---- -apiVersion: v1 -kind: Service -metadata: - name: clusterapi - namespace: default - labels: - api: clusterapi - apiserver: "true" -spec: - ports: - - port: 443 - protocol: TCP - targetPort: 443 - selector: - api: clusterapi - apiserver: "true" ---- -apiVersion: apps/v1beta1 -kind: Deployment -metadata: - name: clusterapi-apiserver - namespace: default - labels: - api: clusterapi - apiserver: "true" -spec: - replicas: 1 - template: - metadata: - labels: - api: clusterapi - apiserver: "true" - spec: - nodeSelector: - node-role.kubernetes.io/master: "" - tolerations: - - effect: NoSchedule - key: node-role.kubernetes.io/master - - key: CriticalAddonsOnly - operator: Exists - - effect: NoExecute - key: node.alpha.kubernetes.io/notReady - operator: Exists - - effect: NoExecute - key: node.alpha.kubernetes.io/unreachable - operator: Exists - containers: - - name: apiserver - image: gcr.io/k8s-cluster-api/cluster-apiserver:0.0.6 - volumeMounts: - - name: cluster-apiserver-certs - mountPath: /apiserver.local.config/certificates - readOnly: true - - name: config - mountPath: /etc/kubernetes - - name: certs - mountPath: /etc/ssl/certs - command: - - "./apiserver" - args: - - "--etcd-servers=http://etcd-clusterapi-svc:2379" - - "--tls-cert-file=/apiserver.local.config/certificates/tls.crt" - - "--tls-private-key-file=/apiserver.local.config/certificates/tls.key" - - "--audit-log-path=-" - - "--audit-log-maxage=0" - - "--audit-log-maxbackup=0" - - "--authorization-kubeconfig=/etc/kubernetes/admin.conf" - - "--kubeconfig=/etc/kubernetes/admin.conf" - resources: - requests: - cpu: 100m - memory: 50Mi - limits: - cpu: 300m - memory: 200Mi - volumes: - - name: cluster-apiserver-certs - secret: - secretName: cluster-apiserver-certs - - name: config - hostPath: - path: /etc/kubernetes - - name: certs - hostPath: - path: /etc/ssl/certs ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: clusterapi - namespace: kube-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: extension-apiserver-authentication-reader -subjects: -- kind: ServiceAccount - name: default - namespace: default ---- -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - name: etcd-clusterapi - namespace: default -spec: - serviceName: "etcd" - replicas: 1 - template: - metadata: - labels: - app: etcd - spec: - nodeSelector: - node-role.kubernetes.io/master: "" - tolerations: - - effect: NoSchedule - key: node-role.kubernetes.io/master - - key: CriticalAddonsOnly - operator: Exists - - effect: NoExecute - key: node.alpha.kubernetes.io/notReady - operator: Exists - - effect: NoExecute - key: node.alpha.kubernetes.io/unreachable - operator: Exists - volumes: - - hostPath: - path: /var/lib/etcd2 - type: DirectoryOrCreate - name: etcd-data-dir - terminationGracePeriodSeconds: 10 - containers: - - name: etcd - image: k8s.gcr.io/etcd:3.1.12 - resources: - requests: - cpu: 100m - memory: 50Mi - limits: - cpu: 200m - memory: 300Mi - env: - - name: ETCD_DATA_DIR - value: /etcd-data-dir - command: - - /usr/local/bin/etcd - - --listen-client-urls - - http://0.0.0.0:2379 - - --advertise-client-urls - - http://localhost:2379 - ports: - - containerPort: 2379 - volumeMounts: - - name: etcd-data-dir - mountPath: /etcd-data-dir - readinessProbe: - httpGet: - port: 2379 - path: /health - failureThreshold: 1 - initialDelaySeconds: 10 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 2 - livenessProbe: - httpGet: - port: 2379 - path: /health - failureThreshold: 3 - initialDelaySeconds: 10 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 2 ---- -apiVersion: v1 -kind: Service -metadata: - name: etcd-clusterapi-svc - namespace: default - labels: - app: etcd -spec: - ports: - - port: 2379 - name: etcd - targetPort: 2379 - selector: - app: etcd ---- -apiVersion: v1 -kind: Secret -type: kubernetes.io/tls -metadata: - name: cluster-apiserver-certs - namespace: default - labels: - api: clusterapi - apiserver: "true" -data: - tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZRENDQWtpZ0F3SUJBZ0lJT3RCZ0hiT3pnZWN3RFFZSktvWklodmNOQVFFTEJRQXdLekVwTUNjR0ExVUUKQXhNZ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m8wczUrRE5pNkNaSFB0VUM4CmZOcDI5QVl2R0RYbEZQUUV6dlFaakdrQ2dZQlJodHA4cEZEL3FSQ3hSNjZDMWVKZmFMRTJocFFVblFDL0gvU3EKb3NSZzhjbUYrUE5jZVNTWmRETXpPdlluOFllTmJHT25MTHEyU2lsclZzM1FOc3FkTlh0SFVkeVRENlI0d3JWVwpGbFNkME4zTEJKamFiRnRtZ29xVnlKTVhEN1I3dWZjUlQ4RXl1cVJmL1VTTms4UUZSaUI3RmVBSlJpa1J1V2xFCjIraHZrUUtCZ1FDRTNCNHZaS3JiVXdYdXlYbnVBaXVWRlFCU3JqVkpscHFZMzgrVnVjQjBVQ3pVZzRCZWdZQ3EKdUxWelB1S1FSVVRWSzY2UEI5S1lGc1NxR2VVc0VHcEQwcEJrM09vcU42Q2RpbzA1MTdJYmVTcDV0dy9KYUduUgpPUmoyT1RSZmpab1BzcXJPbFVZOEEzVFZMWmM0MDhFQ3YxNVBlZGZXKzJUWS8ydTM2WGtCRkE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= diff --git a/examples/provider-components.yml b/examples/provider-components.yml deleted file mode 100644 index d22fcc8740..0000000000 --- a/examples/provider-components.yml +++ /dev/null @@ -1,100 +0,0 @@ -apiVersion: apps/v1beta1 -kind: Deployment -metadata: - name: clusterapi-controllers - labels: - api: clusterapi -spec: - replicas: 1 - template: - metadata: - labels: - api: clusterapi - spec: - nodeSelector: - node-role.kubernetes.io/master: "" - tolerations: - - effect: NoSchedule - key: node-role.kubernetes.io/master - - key: CriticalAddonsOnly - operator: Exists - - effect: NoExecute - key: node.alpha.kubernetes.io/notReady - operator: Exists - - effect: NoExecute - key: node.alpha.kubernetes.io/unreachable - operator: Exists - containers: - - name: controller-manager - image: openshift/origin-aws-machine-controllers:v4.0.0 - volumeMounts: - - name: config - mountPath: /etc/kubernetes - - name: certs - mountPath: /etc/ssl/certs - command: - - "./controller-manager" - args: - - --kubeconfig=/etc/kubernetes/admin.conf - resources: - requests: - cpu: 100m - memory: 20Mi - limits: - cpu: 100m - memory: 30Mi - - name: nodelink-controller - image: openshift/origin-machine-api-operator:latest - volumeMounts: - - name: config - mountPath: /etc/kubernetes - - name: certs - mountPath: /etc/ssl/certs - command: - - "./nodelink-controller" - args: - - --kubeconfig=/etc/kubernetes/admin.conf - resources: - requests: - cpu: 100m - memory: 20Mi - limits: - cpu: 100m - memory: 30Mi - - name: aws-machine-controller - image: openshift/origin-aws-machine-controllers:v4.0.0 - volumeMounts: - - name: config - mountPath: /etc/kubernetes - - name: certs - mountPath: /etc/ssl/certs - - name: kubeadm - mountPath: /usr/bin/kubeadm - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - command: - - /machine-controller - args: - - --logtostderr=true - - --v=3 - - --kubeconfig=/etc/kubernetes/admin.conf - resources: - requests: - cpu: 100m - memory: 20Mi - limits: - cpu: 100m - memory: 30Mi - volumes: - - name: config - hostPath: - path: /etc/kubernetes - - name: certs - hostPath: - path: /etc/ssl/certs - - name: kubeadm - hostPath: - path: /usr/bin/kubeadm