DEV Community

Discussion on: How do you set up your application stack?

Collapse
 
dietertroy profile image
Troy

Hi,

Jenkins (not X) is used. Something similar to this with environmental variables defined for k8sClusterCredentialName and k8sMasterUrl

withKubeConfig([credentialsId: "${getConfigValue('k8sClusterCredentialName')}", serverUrl: "${getConfigValue('k8sMasterUrl')}"]) {
                    sh 'kubectl apply -f ./kubernetes/'
                }