fix config

This commit is contained in:
Nana Janashia
2020-12-20 16:29:01 +01:00
parent 386fde3774
commit 92835a5b54
2 changed files with 11 additions and 2 deletions

7
Jenkinsfile vendored
View File

@@ -11,6 +11,10 @@ pipeline {
} }
stages { stages {
stage('provision cluster') { stage('provision cluster') {
environment {
TF_VAR_env_prefix = "test"
TF_VAR_k8s_version = "1.18"
}
steps { steps {
script { script {
dir('terraform') { dir('terraform') {
@@ -25,7 +29,8 @@ pipeline {
script: "terraform output cluster_url", script: "terraform output cluster_url",
returnStdout: true returnStdout: true
) )
env.KUBECONFIG=kubeconfig.yaml sh "ls"
env.KUBECONFIG="./kubeconfig.yaml"
sh "kubectl get node" sh "kubectl get node"
} }
} }

View File

@@ -4,4 +4,8 @@ output repo_url {
output cluster_url { output cluster_url {
value = module.eks.cluster_endpoint value = module.eks.cluster_endpoint
} }
output kubeconfig {
value = "module.eks.kubeconfig"
}