我尝试了本地minikube和kubeadm Kubernetes集群,并通过https://github.com/jenkinsci/kubernetes-plugin运行Jenkins服务器,并使用。
以下是了解这个问题的更多细节。
节点('slave'){stage('checkout'){checkout scm
}stage('build Docker image'){sh'make build'}}
$ kubectl get events --watch
0s Normal Scheduled Pod Successfully assigned kubernetes-plugin/slave-bls6d to ubuntu
0s Normal Pulled Pod Container image "jenkins/jnlp-slave" already present on machine
0s Normal Created Pod Created container jnlp
0s Normal Started Pod Started container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Scheduled Pod Successfully assigned kubernetes-plugin/slave-jdq9l to ubuntu
0s Normal Pulled Pod Container image "jenkins/jnlp-slave" already present on machine
0s Normal Created Pod Created container jnlp
0s Normal Started Pod Started container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Scheduled Pod Successfully assigned kubernetes-plugin/slave-06dfz to ubuntu
0s Normal Pulled Pod Container image "jenkins/jnlp-slave" already present on machine
0s Normal Created Pod Created container jnlp
0s Normal Started Pod Started container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Scheduled Pod Successfully assigned kubernetes-plugin/slave-5f3p6 to ubuntu
0s Normal Pulled Pod Container image "jenkins/jnlp-slave" already present on machine
0s Normal Created Pod Created container jnlp
0s Normal Started Pod Started container jnlp
0s Normal Killing Pod Stopping container jnlp
1s Normal Killing Pod Stopping container jnlp
0s Normal Scheduled Pod Successfully assigned kubernetes-plugin/slave-nw32h to ubuntu
0s Normal Pulled Pod Container image "jenkins/jnlp-slave" already present on machine
0s Normal Created Pod Created container jnlp
1s Normal Started Pod Started container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Scheduled Pod Successfully assigned kubernetes-plugin/slave-l5jn5 to ubuntu
0s Normal Pulled Pod Container image "jenkins/jnlp-slave" already present on machine
0s Normal Created Pod Created container jnlp
0s Normal Started Pod Started container jnlp
0s Normal Killing Pod Stopping container jnlp
0s Normal Killing Pod Stopping container jnlp
Jun 17, 2019 2:49:28 PM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
In provisioning : []
Jun 17, 2019 2:49:28 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud provision
Excess workload after pending Kubernetes agents: 1
Jun 17, 2019 2:49:28 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud provision
Template for label slave: Kubernetes Pod Template
Jun 17, 2019 2:49:28 PM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
Building connection to Kubernetes kubernetes URL https://kubernetes.default.svc.cluster.local namespace kubernetes-plugin
Jun 17, 2019 2:49:28 PM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
Connected to Kubernetes kubernetes URL https://kubernetes.default.svc.cluster.local/
Jun 17, 2019 2:49:28 PM FINEST org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
Planned Kubernetes agents for template "Kubernetes Pod Template": 1
Jun 17, 2019 2:49:38 PM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
Building connection to Kubernetes kubernetes URL https://kubernetes.default.svc.cluster.local namespace kubernetes-plugin
Jun 17, 2019 2:49:38 PM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
Connected to Kubernetes kubernetes URL https://kubernetes.default.svc.cluster.local/
Jun 17, 2019 2:49:38 PM FINE org.csanchez.jenkins.plugins.kubernetes.PodTemplateBuilder
Adding workspace volume from template: EmptyDirWorkspaceVolume [memory=false]
Jun 17, 2019 2:49:38 PM FINE org.csanchez.jenkins.plugins.kubernetes.PodTemplateBuilder
Pod built: Pod(apiVersion=v1, kind=Pod, metadata=ObjectMeta(annotations={}, clusterName=null, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, initializers=null, labels={jenkins=slave, jenkins/slave=true}, name=slave-738cb, namespace=null, ownerReferences=[], resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, affinity=null, automountServiceAccountToken=null, containers=[Container(args=[cat], command=[/bin/sh, -c], env=[EnvVar(name=JENKINS_SECRET, value=0cfd3e63aec16128455251edad357882243691c9f90a7a2e022eea572c6bc690, valueFrom=null, additionalProperties={}), EnvVar(name=JENKINS_AGENT_NAME, value=slave-738cb, valueFrom=null, additionalProperties={}), EnvVar(name=JENKINS_NAME, value=slave-738cb, valueFrom=null, additionalProperties={}), EnvVar(name=JENKINS_URL, value=http://jenkins.example.com/, valueFrom=null, additionalProperties={}), EnvVar(name=HOME, value=/home/jenkins, valueFrom=null, additionalProperties={})], envFrom=[], image=jenkins/jnlp-slave, imagePullPolicy=IfNotPresent, lifecycle=null, livenessProbe=null, name=jnlp, ports=[], readinessProbe=null, resources=ResourceRequirements(limits={}, requests={}, additionalProperties={}), securityContext=SecurityContext(allowPrivilegeEscalation=null, capabilities=null, privileged=true, procMount=null, readOnlyRootFilesystem=null, runAsGroup=null, runAsNonRoot=null, runAsUser=null, seLinuxOptions=null, additionalProperties={}), stdin=null, stdinOnce=null, terminationMessagePath=null, terminationMessagePolicy=null, tty=true, volumeDevices=[], volumeMounts=[VolumeMount(mountPath=/home/jenkins, mountPropagation=null, name=workspace-volume, readOnly=false, subPath=null, subPathExpr=null, additionalProperties={})], workingDir=/home/jenkins, additionalProperties={})], dnsConfig=null, dnsPolicy=null, enableServiceLinks=null, hostAliases=[], hostIPC=null, hostNetwork=null, hostPID=null, hostname=null, imagePullSecrets=[], initContainers=[], nodeName=null, nodeSelector={}, priority=null, priorityClassName=null, readinessGates=[], restartPolicy=Never, runtimeClassName=null, schedulerName=null, securityContext=null, serviceAccount=null, serviceAccountName=null, shareProcessNamespace=null, subdomain=null, terminationGracePeriodSeconds=null, tolerations=[], volumes=[Volume(awsElasticBlockStore=null, azureDisk=null, azureFile=null, cephfs=null, cinder=null, configMap=null, csi=null, downwardAPI=null, emptyDir=EmptyDirVolumeSource(medium=, sizeLimit=null, additionalProperties={}), fc=null, flexVolume=null, flocker=null, gcePersistentDisk=null, gitRepo=null, glusterfs=null, hostPath=null, iscsi=null, name=workspace-volume, nfs=null, persistentVolumeClaim=null, photonPersistentDisk=null, portworxVolume=null, projected=null, quobyte=null, rbd=null, scaleIO=null, secret=null, storageos=null, vsphereVolume=null, additionalProperties={})], additionalProperties={}), status=null, additionalProperties={})
Jun 17, 2019 2:49:38 PM FINE org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher
Creating Pod: kubernetes-plugin/slave-738cb
Jun 17, 2019 2:49:38 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Created Pod: kubernetes-plugin/slave-738cb
Jun 17, 2019 2:49:38 PM FINEST org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher
[ADDED] slave-738cb
Jun 17, 2019 2:49:40 PM FINEST org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher
[MODIFIED] slave-738cb
Jun 17, 2019 2:49:42 PM FINEST org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher
[MODIFIED] slave-738cb
Jun 17, 2019 2:49:42 PM FINE org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher
All containers are running for pod slave-738cb
Jun 17, 2019 2:49:42 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Pod is running: kubernetes-plugin/slave-738cb
Jun 17, 2019 2:49:42 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (0/100): slave-738cb
Jun 17, 2019 2:49:43 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (1/100): slave-738cb
Jun 17, 2019 2:49:44 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (2/100): slave-738cb
Jun 17, 2019 2:49:45 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (3/100): slave-738cb
Jun 17, 2019 2:49:46 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (4/100): slave-738cb
Jun 17, 2019 2:49:47 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (5/100): slave-738cb
Jun 17, 2019 2:49:48 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (6/100): slave-738cb
Jun 17, 2019 2:49:49 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (7/100): slave-738cb
Jun 17, 2019 2:49:50 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (8/100): slave-738cb
Jun 17, 2019 2:49:51 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (9/100): slave-738cb
Jun 17, 2019 2:49:52 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (10/100): slave-738cb
Jun 17, 2019 2:49:53 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (11/100): slave-738cb
Jun 17, 2019 2:49:54 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (12/100): slave-738cb
Jun 17, 2019 2:49:55 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (13/100): slave-738cb
Jun 17, 2019 2:49:56 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (14/100): slave-738cb
Jun 17, 2019 2:49:57 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (15/100): slave-738cb
Jun 17, 2019 2:49:58 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (16/100): slave-738cb
Jun 17, 2019 2:49:59 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (17/100): slave-738cb
Jun 17, 2019 2:50:00 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (18/100): slave-738cb
Jun 17, 2019 2:50:01 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (19/100): slave-738cb
Jun 17, 2019 2:50:02 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (20/100): slave-738cb
Jun 17, 2019 2:50:03 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (21/100): slave-738cb
Jun 17, 2019 2:50:04 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (22/100): slave-738cb
Jun 17, 2019 2:50:05 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (23/100): slave-738cb
Jun 17, 2019 2:50:06 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (24/100): slave-738cb
Jun 17, 2019 2:50:07 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (25/100): slave-738cb
Jun 17, 2019 2:50:08 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (26/100): slave-738cb
Jun 17, 2019 2:50:09 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (27/100): slave-738cb
Jun 17, 2019 2:50:10 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (28/100): slave-738cb
Jun 17, 2019 2:50:11 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (29/100): slave-738cb
Jun 17, 2019 2:50:12 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (30/100): slave-738cb
Jun 17, 2019 2:50:13 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (31/100): slave-738cb
Jun 17, 2019 2:50:14 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (32/100): slave-738cb
Jun 17, 2019 2:50:15 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (33/100): slave-738cb
Jun 17, 2019 2:50:16 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (34/100): slave-738cb
Jun 17, 2019 2:50:17 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (35/100): slave-738cb
Jun 17, 2019 2:50:18 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (36/100): slave-738cb
Jun 17, 2019 2:50:20 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (37/100): slave-738cb
Jun 17, 2019 2:50:21 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (38/100): slave-738cb
Jun 17, 2019 2:50:22 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (39/100): slave-738cb
Jun 17, 2019 2:50:23 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (40/100): slave-738cb
Jun 17, 2019 2:50:24 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (41/100): slave-738cb
Jun 17, 2019 2:50:25 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (42/100): slave-738cb
Jun 17, 2019 2:50:26 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (43/100): slave-738cb
Jun 17, 2019 2:50:27 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (44/100): slave-738cb
Jun 17, 2019 2:50:28 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (45/100): slave-738cb
Jun 17, 2019 2:50:29 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (46/100): slave-738cb
Jun 17, 2019 2:50:30 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (47/100): slave-738cb
Jun 17, 2019 2:50:31 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (48/100): slave-738cb
Jun 17, 2019 2:50:32 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (49/100): slave-738cb
Jun 17, 2019 2:50:33 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (50/100): slave-738cb
Jun 17, 2019 2:50:34 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (51/100): slave-738cb
Jun 17, 2019 2:50:35 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (52/100): slave-738cb
Jun 17, 2019 2:50:36 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (53/100): slave-738cb
Jun 17, 2019 2:50:37 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (54/100): slave-738cb
Jun 17, 2019 2:50:38 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (55/100): slave-738cb
Jun 17, 2019 2:50:39 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (56/100): slave-738cb
Jun 17, 2019 2:50:40 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (57/100): slave-738cb
Jun 17, 2019 2:50:41 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (58/100): slave-738cb
Jun 17, 2019 2:50:42 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (59/100): slave-738cb
Jun 17, 2019 2:50:43 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (60/100): slave-738cb
Jun 17, 2019 2:50:44 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (61/100): slave-738cb
Jun 17, 2019 2:50:45 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (62/100): slave-738cb
Jun 17, 2019 2:50:46 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (63/100): slave-738cb
Jun 17, 2019 2:50:47 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (64/100): slave-738cb
Jun 17, 2019 2:50:48 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (65/100): slave-738cb
Jun 17, 2019 2:50:49 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (66/100): slave-738cb
Jun 17, 2019 2:50:50 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (67/100): slave-738cb
Jun 17, 2019 2:50:51 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (68/100): slave-738cb
Jun 17, 2019 2:50:52 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (69/100): slave-738cb
Jun 17, 2019 2:50:53 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (70/100): slave-738cb
Jun 17, 2019 2:50:54 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (71/100): slave-738cb
Jun 17, 2019 2:50:55 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (72/100): slave-738cb
Jun 17, 2019 2:50:56 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (73/100): slave-738cb
Jun 17, 2019 2:50:57 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (74/100): slave-738cb
Jun 17, 2019 2:50:58 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (75/100): slave-738cb
Jun 17, 2019 2:50:59 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (76/100): slave-738cb
Jun 17, 2019 2:51:00 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (77/100): slave-738cb
Jun 17, 2019 2:51:01 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (78/100): slave-738cb
Jun 17, 2019 2:51:02 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (79/100): slave-738cb
Jun 17, 2019 2:51:03 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (80/100): slave-738cb
Jun 17, 2019 2:51:04 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (81/100): slave-738cb
Jun 17, 2019 2:51:05 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (82/100): slave-738cb
Jun 17, 2019 2:51:06 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (83/100): slave-738cb
Jun 17, 2019 2:51:07 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (84/100): slave-738cb
Jun 17, 2019 2:51:08 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (85/100): slave-738cb
Jun 17, 2019 2:51:09 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (86/100): slave-738cb
Jun 17, 2019 2:51:10 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (87/100): slave-738cb
Jun 17, 2019 2:51:11 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (88/100): slave-738cb
Jun 17, 2019 2:51:12 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (89/100): slave-738cb
Jun 17, 2019 2:51:13 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (90/100): slave-738cb
Jun 17, 2019 2:51:14 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (91/100): slave-738cb
Jun 17, 2019 2:51:15 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (92/100): slave-738cb
Jun 17, 2019 2:51:16 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (93/100): slave-738cb
Jun 17, 2019 2:51:17 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (94/100): slave-738cb
Jun 17, 2019 2:51:18 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (95/100): slave-738cb
Jun 17, 2019 2:51:19 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (96/100): slave-738cb
Jun 17, 2019 2:51:20 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (97/100): slave-738cb
Jun 17, 2019 2:51:21 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (98/100): slave-738cb
Jun 17, 2019 2:51:22 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Waiting for agent to connect (99/100): slave-738cb
Jun 17, 2019 2:51:23 PM WARNING org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher launch
Error in provisioning; agent=KubernetesSlave name: slave-738cb, template=PodTemplate{inheritFrom='', name='slave', namespace='', label='slave', nodeSelector='', nodeUsageMode=EXCLUSIVE, workspaceVolume=EmptyDirWorkspaceVolume [memory=false], containers=[ContainerTemplate{name='jnlp', image='jenkins/jnlp-slave', privileged=true, workingDir='/home/jenkins', command='/bin/sh -c', args='cat', ttyEnabled=true, resourceRequestCpu='', resourceRequestMemory='', resourceLimitCpu='', resourceLimitMemory='', livenessProbe=org.csanchez.jenkins.plugins.kubernetes.ContainerLivenessProbe@7f0aa5f6}]}
java.lang.IllegalStateException: Agent is not connected after 100 seconds, status: Running
at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:187)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Jun 17, 2019 2:51:23 PM FINER org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher
Removing Jenkins node: slave-738cb
Jun 17, 2019 2:51:23 PM INFO org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave _terminate
Terminating Kubernetes instance for agent slave-738cb
也许不是为了回答你的问题。当我试图旋转一个奴隶(Kubernetes吊舱)时,我遇到了一个模拟器问题。参见下面的作业输出
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor
Created Pod: jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-vd8j7 in namespace tools
Created Pod: jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-lv33g in namespace tools
Created Pod: jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-646dm in namespace tools
Ready to run at Wed Mar 04 18:20:20 UTC 2020
Resuming build at Wed Mar 04 18:20:20 UTC 2020 after Jenkins restart
你可以看到Jenkins说它已经创建,但当我检查豆荚时,它一直在重新创建。
詹金斯原木
2020-03-04 18:27:07.295+0000 [id=220] WARNING o.c.j.p.k.KubernetesLauncher#launch: Error in provisioning; agent=KubernetesSlave name: jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-t14q4, template=PodTemplate{, name='jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2z3', namespace='tools', label='jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b', nodeUsageMode=EXCLUSIVE, workspaceVolume=EmptyDirWorkspaceVolume [memory=false], annotations=[org.csanchez.jenkins.plugins.kubernetes.PodAnnotation@aab9c821, org.csanchez.jenkins.plugins.kubernetes.PodAnnotation@c92c82e4]}
io.fabric8.kubernetes.client.KubernetesClientTimeoutException: Timed out waiting for [100000] milliseconds for [Pod] with name:[jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-t14q4] in namespace [tools].
at org.csanchez.jenkins.plugins.kubernetes.AllContainersRunningPodWatcher.await(AllContainersRunningPodWatcher.java:147)
at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:139)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:292)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2020-03-04 18:27:07.295+0000 [id=220] INFO o.c.j.p.k.KubernetesSlave#_terminate: Terminating Kubernetes instance for agent jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-t14q4
2020-03-04 18:27:07.312+0000 [id=220] INFO o.c.j.p.k.KubernetesSlave#deleteSlavePod: Terminated Kubernetes instance for agent tools/jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-t14q4
Terminated Kubernetes instance for agent tools/jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-t14q4
2020-03-04 18:27:07.312+0000 [id=220] INFO o.c.j.p.k.KubernetesSlave#_terminate: Disconnected computer jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-t14q4
Warning FailedMount 4s (x4 over 7s) kubelet, gke-fuchicorp-cluster-default-pool-f07211fa-06b8 MountVolume.SetUp failed for volume "google-service-account" : secret "fuchicorp-service-account" not found
kubectl get secret -n tools fuchicorp-service-account
Error from server (NotFound): secrets "fuchicorp-service-account" not found
kubectl get pod -n tools | grep jenkins
jenkins-master-tools-57946f6b9-v449m 1/1 Running 0 35h
jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-pvdgt 3/3 Running 0 33s
Resuming build at Wed Mar 04 18:20:20 UTC 2020 after Jenkins restart
Agent jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2-pvdgt is provisioned from template jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b-hx2z3
---
apiVersion: "v1"
kind: "Pod"
metadata:
annotations:
jenkinsjoblabel: "academy-fuchicorp-build/dev-3"
buildUrl: "http://jenkins-deployment-tools:443/job/academy-fuchicorp-build/job/dev/3/"
runUrl: "job/academy-fuchicorp-build/job/dev/3/"
labels:
k8s-label: "jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b"
jenkins: "slave"
jenkins/label: "jenkins-pipeline-4ea762be-3222-41f8-a091-620bdca2ad7b"
我正在尝试在kubernetes环境中运行Flink作业集群(1.8.1)。我使用此文档使用我的作业jar创建了docker映像。 按照kubefiles创建作业、作业管理器和任务管理器。问题是任务管理器无法连接到作业管理器,并持续崩溃。 调试作业管理器日志时,
本文档最初是基于kubenetes1.6版本编写的,对于kuberentes1.8及以上版本同样适用,只是个别位置有稍许变动,变动的地方我将特别注明版本要求。 本系列文档介绍使用二进制部署 kubernetes 集群的所有步骤,而不是使用 kubeadm 等自动化方式来部署集群,同时开启了集群的TLS安全认证,该安装步骤适用于所有bare metal环境、on-premise环境和公有云环境。 如
我有一个在kubernetes集群(在AWS EKS上)上运行的mongo db副本集,比如集群-1。这在具有cidr的VPC-1中运行192.174.0.0/16. 我在一个单独的VPC中有另一个集群,比如VPC-2,在那里我将在mongo集群之上运行一些应用程序。该VPC cidr范围为192.176.0.0/16。所有VPC对等和安全组入口/出口规则都正常工作,我能够跨两个VPC ping集
我的Kubernetes设置: v1.16.2裸机 1主节点:用于Jenkins master+Docker注册表 5个从节点:用于Jenkins JNPL从节点 我使用kubernetes-plugin来运行奴隶码头代理。标记为“Jenkins=slave”的所有从k8节点。当我将nodeSelector(“Jenkins=slave”)用于podTemplate时,kubernetes总是在同
我试图配置RBAC来添加访问受限的新用户。我正在遵循以下教程:https://docs.bitnami.com/kubernetes/how-to/configure-rbac-in-your-kubernetes-cluster/#use-case-1-create-user-with-limited-namespace-access 它要求我使用Kubernetes CA批准用户签名请求: 找
在Ubuntu上使用Kafka:Zookeeper启动Kafka启动主题创建生产者启动消费者启动消息在生产者和消费者之间传递良好 我创建了2个新的server.properties文件:server-1.properties: 服务器-2。属性为: 当我开始新经纪人时: 错误为: