Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ helm delete --purge myjenkins
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ helm install --name=myjenkins .
NAME:   myjenkins
LAST DEPLOYED: Thu Mar 30 23:24:45 2017
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> extensions/Deployment
NAME                DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
myjenkins-jenkins   1         1         1            0           0s

==> v1/PersistentVolumeClaim
NAME                STATUS    VOLUME                                     CAPACITY   ACCESSMODES   AGE
myjenkins-jenkins   Bound     pvc-5a578e57-15d2-11e7-97be-0800279f57ed   8Gi        RWO           0s

==> v1/Secret
NAME                TYPE      DATA      AGE
myjenkins-jenkins   Opaque    2         0s

==> v1/ConfigMap
NAME                DATA      AGE
myjenkins-jenkins   7         0s

==> v1/Service
NAME                CLUSTER-IP   EXTERNAL-IP   PORT(S)                          AGE
myjenkins-jenkins   10.0.0.103   <pending>     8080:30159/TCP,50000:30249/TCP   0s


plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ kubectl get pods --all-namespaces 
NAMESPACE     NAME                                 READY     STATUS       RESTARTS   AGE
default       myjenkins-jenkins-3474633702-pnxzc   0/1       Init:Error   1          6s
kube-system   kube-addon-manager-minikube          1/1       Running      1          14h
kube-system   kube-dns-v20-tjmhm                   3/3       Running      3          14h
kube-system   kubernetes-dashboard-dnwbw           1/1       Running      1          14h
kube-system   tiller-deploy-3299276078-cc8td       1/1       Running      1          14h
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ kubectl describe pod myjenkins-jenkins-3474633702-pnxzc 
Name:   myjenkins-jenkins-3474633702-pnxzc
Namespace:  default
Node:   minikube/192.168.99.101
Start Time: Thu, 30 Mar 2017 23:24:47 -0600
Labels:   chart=jenkins-0.3.0
    component=myjenkins-jenkins-master
    heritage=Tiller
    pod-template-hash=3474633702
    release=myjenkins
Status:   Pending
IP:   172.17.0.5
Controllers:  ReplicaSet/myjenkins-jenkins-3474633702
Init Containers:
  copy-default-config:
    Container ID: docker://c5bd6d2f03481513d070fc94d0f0520f44febf1e3665f4654ffa7971d6131868
    Image:    gcr.io/kubernetes-charts-ci/jenkins-master-k8s:v0.6.0
    Image ID:   docker://sha256:b3b56c9b9a97f88c990f6f8df64a21a4fc39ebe612a21a7653b460343212ae19
    Port:   
    Command:
      sh
      /var/jenkins_config/apply_config.sh
    State:    Waiting
      Reason:   CrashLoopBackOff
    Last State:   Terminated
      Reason:   Error
      Exit Code:  127
      Started:    Thu, 30 Mar 2017 23:24:51 -0600
      Finished:   Thu, 30 Mar 2017 23:24:51 -0600
    Ready:    False
    Restart Count:  1
    Volume Mounts:
      /var/jenkins_config from jenkins-config (rw)
      /var/jenkins_home from jenkins-home (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-qt4fb (ro)
    Environment Variables:  <none>
Containers:
  myjenkins-jenkins:
    Container ID: 
    Image:    gcr.io/kubernetes-charts-ci/jenkins-master-k8s:v0.6.0
    Image ID:   
    Ports:    8080/TCP, 50000/TCP
    Args:
      --argumentsRealm.passwd.$(ADMIN_USER)=$(ADMIN_PASSWORD)
      --argumentsRealm.roles.$(ADMIN_USER)=admin
    Requests:
      cpu:    200m
      memory:   256Mi
    State:    Waiting
      Reason:   PodInitializing
    Ready:    False
    Restart Count:  0
    Volume Mounts:
      /var/jenkins_config from jenkins-config (ro)
      /var/jenkins_home from jenkins-home (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-qt4fb (ro)
    Environment Variables:
      JAVA_OPTS:  
      ADMIN_PASSWORD: <set to the key 'jenkins-admin-password' in secret 'myjenkins-jenkins'>
      ADMIN_USER: <set to the key 'jenkins-admin-user' in secret 'myjenkins-jenkins'>
Conditions:
  Type    Status
  Initialized   False 
  Ready   False 
  PodScheduled  True 
Volumes:
  jenkins-config:
    Type: ConfigMap (a volume populated by a ConfigMap)
    Name: myjenkins-jenkins
  jenkins-home:
    Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  myjenkins-jenkins
    ReadOnly: false
  default-token-qt4fb:
    Type: Secret (a volume populated by a Secret)
    SecretName: default-token-qt4fb
QoS Class:  Burstable
Tolerations:  <none>
Events:
  FirstSeen LastSeen  Count From      SubObjectPath         Type    Reason      Message
  --------- --------  ----- ----      -------------         --------  ------      -------
  21s   21s   2 {default-scheduler }              Warning   FailedScheduling  SchedulerPredicates failed due to PersistentVolumeClaim is not bound: "myjenkins-jenkins", which is unexpected.
  20s   20s   1 {default-scheduler }              Normal    Scheduled   Successfully assigned myjenkins-jenkins-3474633702-pnxzc to minikube
  18s   18s   1 {kubelet minikube}  spec.initContainers{copy-default-config}  Normal    Created     Created container with docker id 6b4ceb01d380; Security:[seccomp=unconfined]
  18s   18s   1 {kubelet minikube}  spec.initContainers{copy-default-config}  Normal    Started     Started container with docker id 6b4ceb01d380
  16s   16s   1 {kubelet minikube}              Warning   FailedSync    Error syncing pod, skipping: failed to "InitContainer" for "copy-default-config" with RunInitContainerError: "init container \"copy-default-config\" exited with 127"

  18s 16s 2 {kubelet minikube}  spec.initContainers{copy-default-config}  Normal  Pulled    Successfully pulled image "gcr.io/kubernetes-charts-ci/jenkins-master-k8s:v0.6.0"
  16s 16s 1 {kubelet minikube}  spec.initContainers{copy-default-config}  Normal  Created   Created container with docker id c5bd6d2f0348; Security:[seccomp=unconfined]
  16s 16s 1 {kubelet minikube}  spec.initContainers{copy-default-config}  Normal  Started   Started container with docker id c5bd6d2f0348
  15s 14s 2 {kubelet minikube}  spec.initContainers{copy-default-config}  Warning BackOff   Back-off restarting failed docker container
  15s 14s 2 {kubelet minikube}              Warning FailedSync  Error syncing pod, skipping: [failed to "InitContainer" for "copy-default-config" with RunInitContainerError: "init container \"copy-default-config\" exited with 127"
, failed to "StartContainer" for "copy-default-config" with CrashLoopBackOff: "Back-off 10s restarting failed container=copy-default-config pod=myjenkins-jenkins-3474633702-pnxzc_default(5a5ee087-15d2-11e7-97be-0800279f57ed)"
]
  20s 1s  3 {kubelet minikube}  spec.initContainers{copy-default-config}  Normal  Pulling pulling image "gcr.io/kubernetes-charts-ci/jenkins-master-k8s:v0.6.0"
@podnov
Copy link

podnov commented Jun 17, 2017

You have any luck fixing these copy-default-config issues?

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