Skip to content

Commit

Permalink
Upload crds, controller and other manifest from the machine-api-opera…
Browse files Browse the repository at this point in the history
…tor repo
  • Loading branch information
ingvagabund committed Dec 3, 2018
1 parent 959ab60 commit 5dc7cd6
Show file tree
Hide file tree
Showing 11 changed files with 523 additions and 336 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
75 changes: 75 additions & 0 deletions config/controllers/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
92 changes: 92 additions & 0 deletions config/crds/cluster.crd.yaml
Original file line number Diff line number Diff line change
@@ -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: []
91 changes: 91 additions & 0 deletions config/crds/machine.crd.yaml
Original file line number Diff line number Diff line change
@@ -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: []
Loading

0 comments on commit 5dc7cd6

Please sign in to comment.