environment test
This commit is contained in:
parent
c582887536
commit
ffecf2611d
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -95,16 +95,20 @@ podTemplate(
|
|||
|
||||
stage('Deploy Application on K8s') {
|
||||
container('kubectl') {
|
||||
withKubeCredentials(kubectlCredentials: [[
|
||||
caCertificate: '',
|
||||
clusterName: 'microk8s',
|
||||
contextName: '',
|
||||
credentialsId: 'jenkins-admin-secret',
|
||||
namespace: 'kube-system',
|
||||
serverUrl: 'https://192.168.50.10:16443']]) {
|
||||
withKubeConfig([credentialsId: 'loafle_net-kubeconfig']) {
|
||||
sh 'kubectl get pods -n dev'
|
||||
}
|
||||
|
||||
// withKubeConfig(kubectlCredentials: [[
|
||||
// caCertificate: '',
|
||||
// clusterName: 'microk8s',
|
||||
// contextName: '',
|
||||
// credentialsId: 'loafle_net-kubeconfig',
|
||||
// namespace: 'kube-system',
|
||||
// serverUrl: 'https://192.168.50.10:16443']]) {
|
||||
|
||||
sh "kubectl config view"
|
||||
}
|
||||
// sh "kubectl config view"
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user