-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b0eb8f
commit 19caf8a
Showing
7 changed files
with
247 additions
and
78 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# NOTE: this release was tested against kubernetes v1.15.x | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: cloud-controller-manager | ||
namespace: kube-system | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: system:cloud-controller-manager | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: cloud-controller-manager | ||
namespace: kube-system | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: hcloud-cloud-controller-manager | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 2 | ||
template: | ||
metadata: | ||
labels: | ||
app: hcloud-cloud-controller-manager | ||
annotations: | ||
scheduler.alpha.kubernetes.io/critical-pod: '' | ||
spec: | ||
serviceAccount: cloud-controller-manager | ||
dnsPolicy: Default | ||
tolerations: | ||
# this taint is set by all kubelets running `--cloud-provider=external` | ||
# so we should tolerate it to schedule the cloud controller manager | ||
- key: "node.cloudprovider.kubernetes.io/uninitialized" | ||
value: "true" | ||
effect: "NoSchedule" | ||
- key: "CriticalAddonsOnly" | ||
operator: "Exists" | ||
# cloud controller manages should be able to run on masters | ||
- key: "node-role.kubernetes.io/master" | ||
effect: NoSchedule | ||
- key: "node.kubernetes.io/not-ready" | ||
effect: "NoSchedule" | ||
hostNetwork: true | ||
containers: | ||
- image: hetznercloud/hcloud-cloud-controller-manager:v1.4.0-b1 | ||
name: hcloud-cloud-controller-manager | ||
command: | ||
- "/bin/hcloud-cloud-controller-manager" | ||
- "--cloud-provider=hcloud" | ||
- "--leader-elect=false" | ||
- "--allow-untagged-cloud" | ||
- "--allocate-node-cidrs=true" | ||
- "--cluster-cidr=10.244.0.0/16" | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 50Mi | ||
env: | ||
- name: NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: HCLOUD_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: hcloud | ||
key: token | ||
- name: HCLOUD_NETWORK | ||
valueFrom: | ||
secretKeyRef: | ||
name: hcloud | ||
key: network |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.