Skip to content

Commit

Permalink
Merge pull request #113 from tlitovsk/master
Browse files Browse the repository at this point in the history
fixing the example to use the latest 0.6.0 release of the ccm
  • Loading branch information
vultj committed Sep 28, 2022
2 parents d6ac78e + 83c0787 commit 4451c72
Showing 1 changed file with 93 additions and 8 deletions.
101 changes: 93 additions & 8 deletions docs/examples/cloud-controller-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,111 @@ metadata:
stringData:
# Replace the api-key and region with proper values
api-key: {{ VULTR_API_KEY }}
region: {{ REGION_ID }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: vultr-ccm
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
name: system:vultr-ccm
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- update
- apiGroups:
- ""
resources:
- nodes
verbs:
- '*'
- apiGroups:
- ""
resources:
- nodes/status
verbs:
- patch
- apiGroups:
- ""
resources:
- services
verbs:
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- services/status
verbs:
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- create
- get
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- endpoints
verbs:
- create
- get
- list
- watch
- update
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- get
- list
- watch
- update
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system:vultr-ccm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
name: system:vultr-ccm
subjects:
- kind: ServiceAccount
name: vultr-ccm
Expand Down Expand Up @@ -62,7 +151,8 @@ spec:
effect: NoSchedule
hostNetwork: true
containers:
- image: vultr/vultr-cloud-controller-manager:v0.0.2
- image: vultr/vultr-cloud-controller-manager:v0.6.0
imagePullPolicy: Always
name: vultr-cloud-controller-manager
command:
- "/vultr-cloud-controller-manager"
Expand All @@ -76,8 +166,3 @@ spec:
secretKeyRef:
name: vultr-ccm
key: api-key
- name: VULTR_REGION
valueFrom:
secretKeyRef:
name: vultr-ccm
key: region

0 comments on commit 4451c72

Please sign in to comment.