Skip to content

Commit

Permalink
Release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-github committed Dec 15, 2023
1 parent 3496404 commit ad5792f
Showing 1 changed file with 148 additions and 0 deletions.
148 changes: 148 additions & 0 deletions releases/v0.4.0/xelon-ccm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: xelon-cloud-controller-manager
namespace: kube-system
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: xelon-cloud-controller-manager
template:
metadata:
labels:
app: xelon-cloud-controller-manager
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
dnsPolicy: Default
hostNetwork: true
serviceAccountName: cloud-controller-manager
tolerations:
# this taint is set by all kubelets running `--cloud-provider=external`
# so we should tolerate it to schedule the xelon ccm
- 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
containers:
- image: xelonag/xelon-cloud-controller-manager:v0.4.0
name: xelon-cloud-controller-manager
args:
- --v=2
command:
- "/bin/xelon-cloud-controller-manager"
- "--leader-elect=false"
imagePullPolicy: "Always"
resources:
requests:
cpu: 100m
memory: 50Mi
env:
- name: XELON_TOKEN
value: "INSERT_TOKEN_HERE"
- name: XELON_API_URL
value: "INSERT_API_URL_HERE"
- name: XELON_CLIENT_ID
value: "INSERT_CLIENT_ID_HERE"
- name: XELON_CLOUD_ID
value: "INSERT_CLOUD_ID_HERE"
- name: XELON_CLUSTER_ID
value: "INSERT_CLUSTER_ID_HERE"

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cloud-controller-manager
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
name: system:cloud-controller-manager
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
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- endpoints
verbs:
- create
- get
- list
- watch
- update
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system:cloud-controller-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:cloud-controller-manager
subjects:
- kind: ServiceAccount
name: cloud-controller-manager
namespace: kube-system

0 comments on commit ad5792f

Please sign in to comment.