File tree Expand file tree Collapse file tree 2 files changed +14
-37
lines changed Expand file tree Collapse file tree 2 files changed +14
-37
lines changed Original file line number Diff line number Diff line change @@ -205,8 +205,14 @@ resource "kubernetes_daemonset" "disk_setup" {
205205 init_container {
206206 name = " disk-setup"
207207 image = var. disk_setup_image
208- command = [" /usr/local/bin/configure-disks.sh" ]
209- args = [" --cloud-provider" , " azure" ]
208+ command = [" ephemeral-storage-setup" ]
209+ args = [
210+ " lvm" ,
211+ " --cloud-provider" ,
212+ " azure" ,
213+ # Taints can not be removed: https://github.com/Azure/AKS/issues/2934
214+ # "--remove-taint",
215+ ]
210216 resources {
211217 limits = {
212218 memory = " 128Mi"
@@ -242,40 +248,11 @@ resource "kubernetes_daemonset" "disk_setup" {
242248 }
243249 }
244250
245- # Taints can not be removed: https://github.com/Azure/AKS/issues/2934
246- # init_container {
247- # name = "taint-removal"
248- # image = var.disk_setup_image
249- # command = ["/usr/local/bin/remove-taint.sh"]
250- # resources {
251- # limits = {
252- # memory = "64Mi"
253- # }
254- # requests = {
255- # memory = "64Mi"
256- # cpu = "10m"
257- # }
258- # }
259- # security_context {
260- # run_as_user = 0
261- # }
262- # env {
263- # name = "NODE_NAME"
264- # value_from {
265- # field_ref {
266- # field_path = "spec.nodeName"
267- # }
268- # }
269- # }
270- # env {
271- # name = "TAINT_KEY"
272- # value = "materialize.cloud/disk-unconfigured"
273- # }
274- # }
275-
276251 container {
277- name = " pause"
278- image = " mcr.microsoft.com/oss/kubernetes/pause:3.6"
252+ name = " pause"
253+ image = var. disk_setup_image
254+ command = [" ephemeral-storage-setup" ]
255+ args = [" sleep" ]
279256 resources {
280257 limits = {
281258 memory = " 8Mi"
@@ -329,7 +306,7 @@ resource "kubernetes_cluster_role" "disk_setup" {
329306 rule {
330307 api_groups = [" " ]
331308 resources = [" nodes" ]
332- verbs = [" get" , " patch" ]
309+ verbs = [" get" , " patch" , " update " ]
333310 }
334311}
335312
Original file line number Diff line number Diff line change @@ -201,5 +201,5 @@ variable "disk_support_config" {
201201variable "disk_setup_image" {
202202 description = " Docker image for the disk setup script"
203203 type = string
204- default = " materialize/ephemeral-storage-setup-image:v0.1.2 "
204+ default = " materialize/ephemeral-storage-setup-image:v0.3.3 "
205205}
You can’t perform that action at this time.
0 commit comments