[17.02.20] Kubernetes deployment settings
This commit is contained in:
parent
8cfd4b182a
commit
2ddea06a23
@ -72,4 +72,4 @@ spec:
|
|||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: registry-secret
|
- name: $KUBERNETES_SECRET_NAME
|
||||||
@ -95,17 +95,27 @@ try {
|
|||||||
// ) {
|
// ) {
|
||||||
// echo ${CONFIG}
|
// echo ${CONFIG}
|
||||||
// }
|
// }
|
||||||
kubernetesDeploy(kubeconfigId: 'Kubernetes', // REQUIRED
|
// kubernetesDeploy(kubeconfigId: 'Kubernetes', // REQUIRED
|
||||||
|
//
|
||||||
configs: '/configuration/kubernetes/service.yaml', '/configuration/kubernetes/deployment.yaml', // REQUIRED
|
// configs: '/configuration/kubernetes/service.yaml', '/configuration/kubernetes/deployment.yaml', // REQUIRED
|
||||||
enableConfigSubstitution: false,
|
// enableConfigSubstitution: false,
|
||||||
|
//
|
||||||
secretNamespace: "${env.NAMESPACE}",
|
// secretNamespace: "${env.NAMESPACE}",
|
||||||
dockerCredentials: [
|
// dockerCredentials: [
|
||||||
[credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"],
|
// [credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"],
|
||||||
]
|
// ]
|
||||||
)
|
// )
|
||||||
// deploy()
|
// 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') {
|
stage('Tag Repository') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user