Skip to content

Commit

Permalink
Update Equinix Metal CCM to v3.4.2 (#2054)
Browse files Browse the repository at this point in the history
* Update Equinix Metal CCM to v3.4.2

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Equinix: change default instance size to c3.small.x86

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Replace --provider-config with --cloud-config flag

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii authored May 26, 2022
1 parent d0bbf86 commit da08aeb
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 82 deletions.
163 changes: 84 additions & 79 deletions addons/ccm-equinixmetal/ccm-equinixmetal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ spec:
- key: "node-role.kubernetes.io/control-plane"
effect: NoSchedule
operator: Exists
# Needed to let CCM come up and assign the EIP
- key: "node.kubernetes.io/not-ready"
effect: NoSchedule
operator: Exists
containers:
- image: {{ .InternalImages.Get "EquinixMetalCCM" }}
name: cloud-provider-equinix-metal
Expand All @@ -44,7 +48,7 @@ spec:
- "--cloud-provider=equinixmetal"
- "--leader-elect=false"
- "--authentication-skip-lookup=true"
- "--provider-config=/etc/cloud-sa/cloud-sa.json"
- "--cloud-config=/etc/cloud-sa/cloud-sa.json"
resources:
requests:
cpu: 100m
Expand All @@ -71,84 +75,85 @@ metadata:
rbac.authorization.kubernetes.io/autoupdate: "true"
name: system:cloud-controller-manager
rules:
- apiGroups:
# reason: so ccm can read the information about the kube-system namespace
- ""
resources:
- namespaces
verbs:
- get
- apiGroups:
# reason: so ccm can monitor and update endpoints, used for control plane loadbalancer
- ""
resources:
- endpoints
verbs:
- create
- get
- list
- watch
- update
- apiGroups:
# reason: so ccm can read and update nodes and annotations
- ""
resources:
- nodes
verbs:
- "*"
- apiGroups:
# reason: so ccm can update the status of nodes
- ""
resources:
- nodes/status
verbs:
- patch
- apiGroups:
# reason: so ccm can manage services for loadbalancer
- ""
resources:
- services
verbs:
- get
- list
- patch
- update
- watch
- create
- apiGroups:
# reason: so ccm can update the status of services for loadbalancer
- ""
resources:
- services/status
verbs:
- list
- patch
- update
- watch
- apiGroups:
# reason: so ccm can read and update configmap/metallb-system:config
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- watch
- update
- patch
- apiGroups:
# reason: so ccm can read and update events
- ""
resources:
- events
verbs:
- create
- get
- list
- watch
- update
- patch
- apiGroups:
# reason: so ccm can read the information about the kube-system namespace
- ""
resources:
- namespaces
verbs:
- get
- apiGroups:
# reason: so ccm can monitor and update endpoints, used for control plane loadbalancer
- ""
resources:
- endpoints
verbs:
- create
- get
- list
- watch
- update
- patch
- apiGroups:
# reason: so ccm can read and update nodes and annotations
- ""
resources:
- nodes
verbs:
- '*'
- apiGroups:
# reason: so ccm can update the status of nodes
- ""
resources:
- nodes/status
verbs:
- patch
- apiGroups:
# reason: so ccm can manage services for loadbalancer
- ""
resources:
- services
verbs:
- get
- list
- patch
- update
- watch
- create
- apiGroups:
# reason: so ccm can update the status of services for loadbalancer
- ""
resources:
- services/status
verbs:
- list
- patch
- update
- watch
- apiGroups:
# reason: so ccm can read and update configmap/metallb-system:config
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- watch
- update
- patch
- apiGroups:
# reason: so ccm can read and update events
- ""
resources:
- events
verbs:
- create
- get
- list
- watch
- update
- patch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion examples/terraform/equinixmetal/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource "metal_device" "lb" {
depends_on = [metal_ssh_key.deployer]

hostname = "${var.cluster_name}-lb"
plan = "t1.small.x86"
plan = var.lb_device_type
facilities = [var.facility]
operating_system = var.lb_operating_system
billing_cycle = "hourly"
Expand Down
8 changes: 7 additions & 1 deletion examples/terraform/equinixmetal/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,17 @@ variable "lb_operating_system" {
}

variable "device_type" {
default = "t1.small.x86"
default = "c3.small.x86"
description = "type (size) of the device"
type = string
}

variable "lb_device_type" {
default = "c3.small.x86"
description = "type (size) of the load balancer device"
type = string
}

variable "project_id" {
description = "project ID"
type = string
Expand Down
2 changes: 1 addition & 1 deletion pkg/templates/images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func optionalResources() map[Resource]map[string]string {
},

// Equinix Metal CCM
EquinixMetalCCM: {"*": "docker.io/equinix/cloud-provider-equinix-metal:v3.3.0"},
EquinixMetalCCM: {"*": "docker.io/equinix/cloud-provider-equinix-metal:v3.4.2"},

// vSphere CCM
VsphereCCM: {
Expand Down

0 comments on commit da08aeb

Please sign in to comment.