Skip to content

Instantly share code, notes, and snippets.

@rasheedamir
Created October 30, 2017 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasheedamir/a5f39d38cfeee1b03ec639b18b806154 to your computer and use it in GitHub Desktop.
Save rasheedamir/a5f39d38cfeee1b03ec639b18b806154 to your computer and use it in GitHub Desktop.
jenkins-k8s-apply-issue

PROBLEM

Jenkinsfile

        // timeout is in milliseconds
        stage('Rollout to Stage') {
            kubernetesApply(readinessTimeout: 180000, environment: envStage)
            // TODO: figure out why to stash deployments?
            // TODO: from where does the stash command comes?
            //stash deployments
            stashName = label
            stash includes: '**/*.yml', name: stashName
        }

Error in log

ERROR: Error during kubernetes apply: io.fabric8.kubernetes.client.KubernetesClientTimeoutException: Timed out waiting for [180000] milliseconds for multiple resources. Resources that are not ready: [Kind:Deployment Name:organization-preference Namespace:tools]
	at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.waitUntilReady(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:121)
	at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.waitUntilReady(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:66)

Pipeline view

screen shot 2017-10-27 at 16 42 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment