Commit 6cfcfcc2 authored by FabiusE's avatar FabiusE

Creates Namespace for jenkins

parent 1a1ebe03
......@@ -9,14 +9,14 @@
*/
provider "helm" {
version = "~> 0.9"
install_tiller = true
version = "~> 1.0.0"
kubernetes {
host = module.k8s.host
client_certificate = base64decode(module.k8s.client_certificate)
client_key = base64decode(module.k8s.client_key)
cluster_ca_certificate = base64decode(module.k8s.cluster_ca_certificate)
load_config_file = false
}
}
......
resource "kubernetes_namespace" "jenkins_namespace" {
metadata {
annotations = {
name = "jenkins"
}
name = "jenkins"
}
}
resource "helm_release" "jenkins"{
name = "jenkins"
namespace = "jenkins"
namespace = kubernetes_namespace.jenkins_namespace.metadata[0].name
chart = "stable/jenkins"
version = 1.9.19
timeout = 600
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment