Hi I am trying to integrate kubernates with jenkins using kubernates deployment plugin.i configured all the details correctly and mentioned kubeconfig file in jenkins but it is not running yaml files specifice name space instead it is running default name space and in that default name space i do not have permissions to create deployments.so my question can i mention namespace in below scirpt.
script {
kubernetesDeploy(kubeconfigId: 'pmkubeconfig',
configs: 'tomcatprodlocaldemo.yml',
enableConfigSubstitution: false,
}
If i add below property also
secretNamespace: 'pmicm'
it is running in default namespace.