spotinst / terraform-spotinst-ocean-controller

A Terraform module to install Ocean Controller.
https://registry.terraform.io/modules/spotinst/ocean-controller/spotinst
Apache License 2.0
12 stars 17 forks source link

Add Resources Definition #9

Closed tuannvm closed 3 years ago

tuannvm commented 3 years ago

Why?

Terraform will perform the following actions:

  # module.eks_addon.module.ocean-controller.kubernetes_deployment.this[0] will be updated in-place
  ~ resource "kubernetes_deployment" "this" {
        id               = "kube-system/spotinst-kubernetes-cluster-controller"
        # (1 unchanged attribute hidden)

      ~ spec {
            # (5 unchanged attributes hidden)

          ~ template {

              ~ spec {
                    # (13 unchanged attributes hidden)

                  ~ container {
                        name                       = "spotinst-kubernetes-cluster-controller"
                        # (9 unchanged attributes hidden)

                      ~ resources {
                          ~ limits   = {
                              - "cpu"    = "500m" -> null
                              - "memory" = "512Mi" -> null
                            }
                            # (1 unchanged attribute hidden)
                        }
                        # (14 unchanged blocks hidden)
                    }

                  ~ toleration {
                      + effect             = "NoExecute"
                      ~ key                = "node-role.kubernetes.io/master" -> "node.kubernetes.io/not-ready"
                      + toleration_seconds = "150"
                        # (1 unchanged attribute hidden)
                    }
                  + toleration {
                      + effect             = "NoExecute"
                      + key                = "node.kubernetes.io/unreachable"
                      + operator           = "Exists"
                      + toleration_seconds = "150"
                    }
                  + toleration {
                      + key      = "node-role.kubernetes.io/master"
                      + operator = "Exists"
                    }
                    # (2 unchanged blocks hidden)
                }
                # (1 unchanged block hidden)
            }
            # (2 unchanged blocks hidden)
        }
        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Warning: Resource targeting is in effect

You are creating a plan with the -target option, which means that the result
of this plan may not represent all of the changes requested by the current
configuration.

The -target option is not for routine use, and is provided only for
exceptional situations such as recovering from errors or mistakes, or when
Terraform specifically suggests to use it as part of an error message.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

module.eks_addon.module.ocean-controller.kubernetes_deployment.this[0]: Modifying... [id=kube-system/spotinst-kubernetes-cluster-controller]
module.eks_addon.module.ocean-controller.kubernetes_deployment.this[0]: Still modifying... [id=kube-system/spotinst-kubernetes-cluster-controller, 10s elapsed]
module.eks_addon.module.ocean-controller.kubernetes_deployment.this[0]: Still modifying... [id=kube-system/spotinst-kubernetes-cluster-controller, 20s elapsed]
module.eks_addon.module.ocean-controller.kubernetes_deployment.this[0]: Modifications complete after 29s [id=kube-system/spotinst-kubernetes-cluster-controller]
liranp commented 3 years ago

Thank you for your contribution, @tuannvm01! Release v0.20.0 is available now.