Skip to content

Instantly share code, notes, and snippets.

@jnahelou
Created August 7, 2018 08:43
Show Gist options
  • Save jnahelou/1450343e1df5cf062508c858f91375a5 to your computer and use it in GitHub Desktop.
Save jnahelou/1450343e1df5cf062508c858f91375a5 to your computer and use it in GitHub Desktop.
helm provider example
provider "helm" {
kubernetes {
host = "https://ww.xx.yy.zz"
username = "root-retail"
password = "mouahahaa"
}
}
provider "kubernetes" {
host = "https://ww.xx.yy.zz"
username = "root-retail"
password = "mouahahaa"
}
resource "kubernetes_namespace" "example" {
metadata {
name = "istio-jnu"
}
}
resource "helm_repository" "incubator" {
name = "incubator"
url = "https://kubernetes-charts-incubator.storage.googleapis.com"
}
resource "helm_release" "istio" {
name = "istio"
repository = "incubator"
chart = "incubator/istio"
namespace = "istio-jnu"
version = "0.2.13-chart4"
#set {
# name = "ingress.enabled"
# value = "false"
#}
#--set ingress.enabled=false \
#--set gateways.istio-ingressgateway.enabled=false \
#--set gateways.istio-egressgateway.enabled=false \
#--set galley.enabled=false \
#--set sidecarInjectorWebhook.enabled=false \
#--set mixer.enabled=false \
#--set prometheus.enabled=false \
#--set global.proxy.envoyStatsd.enabled=false
depends_on = ["kubernetes_namespace.example"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment