[17.02.20] Kubernetes deployment settings
This commit is contained in:
parent
8cfd4b182a
commit
2ddea06a23
@ -72,4 +72,4 @@ spec:
|
||||
memory: 256Mi
|
||||
restartPolicy: Always
|
||||
imagePullSecrets:
|
||||
- name: registry-secret
|
||||
- name: $KUBERNETES_SECRET_NAME
|
||||
@ -95,17 +95,27 @@ try {
|
||||
// ) {
|
||||
// echo ${CONFIG}
|
||||
// }
|
||||
kubernetesDeploy(kubeconfigId: 'Kubernetes', // REQUIRED
|
||||
|
||||
configs: '/configuration/kubernetes/service.yaml', '/configuration/kubernetes/deployment.yaml', // REQUIRED
|
||||
enableConfigSubstitution: false,
|
||||
|
||||
secretNamespace: "${env.NAMESPACE}",
|
||||
dockerCredentials: [
|
||||
[credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"],
|
||||
]
|
||||
)
|
||||
// kubernetesDeploy(kubeconfigId: 'Kubernetes', // REQUIRED
|
||||
//
|
||||
// configs: '/configuration/kubernetes/service.yaml', '/configuration/kubernetes/deployment.yaml', // REQUIRED
|
||||
// enableConfigSubstitution: false,
|
||||
//
|
||||
// secretNamespace: "${env.NAMESPACE}",
|
||||
// dockerCredentials: [
|
||||
// [credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"],
|
||||
// ]
|
||||
// )
|
||||
// deploy()
|
||||
|
||||
kubernetesDeploy configs: '/configuration/kubernetes/service.yaml, /configuration/kubernetes/deployment.yaml',
|
||||
deleteResource: true,
|
||||
dockerCredentials: [[credentialsId: 'Registry', url: 'https://registry.cryptosky.me']],
|
||||
kubeConfig: [path: ''],
|
||||
kubeconfigId: 'Kubernetes',
|
||||
secretName: '',
|
||||
secretNamespace: 'production',
|
||||
ssh: [sshCredentialsId: '*', sshServer: ''],
|
||||
textCredentials: [certificateAuthorityData: '', clientCertificateData: '', clientKeyData: '', serverUrl: 'https://']
|
||||
}
|
||||
|
||||
stage('Tag Repository') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user