daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Dec 6th, 2016 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. kubectl version
  2. Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
  3. Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
  4.    
  5. systemctl status kubelet.service
  6. ● kubelet.service - kubelet: The Kubernetes Node Agent
  7.    Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
  8.   Drop-In: /etc/systemd/system/kubelet.service.d
  9.            └─10-kubeadm.conf
  10.    Active: active (running) since Tue 2016-12-06 05:18:54 EST; 16h ago
  11.      Docs: http://kubernetes.io/docs/
  12.  Main PID: 3677 (kubelet)
  13.     Tasks: 34
  14.    Memory: 38.8M
  15.       CPU: 14min 3.458s
  16.    CGroup: /system.slice/kubelet.service
  17.            ├─3677 /usr/bin/kubelet --kubeconfig=/etc/kubernetes/kubelet.conf --require-kubeconfig=true --cloud-provider=openstack --cloud-config=/home/tcluser/yyf/config/cloud.conf --pod-manifest-path=/etc/kubernetes/manifests --allow-pr
  18.            └─3707 journalctl -k -f
  19.    
  20. cat /home/tcluser/yyf/config/cloud.conf
  21. [Global]
  22. auth-url=http://<openstack-url>:35357/v3
  23. username=<user>
  24. password=<password>
  25. region=xxregionxxx
  26. tenant-name=<tenant-name>
  27. tenant-id=<tenant-id>
  28. domain-name=default
  29.    
  30. openstack.go:215] Got instance id from http://169.254.169.254/openstack/2012-08-10/meta_data.json: 5ff7824e-b201-4c69-a422-44712953407f
  31. server.go:355] Successfully initialized cloud provider: "openstack" from the config file: "/home/tcluser/yyf/config/cloud.conf"
  32.    
  33. cat pod_cinder.yaml
  34. apiVersion: v1
  35. kind: Pod
  36. metadata:
  37.   name: busybox
  38.   labels:
  39.     name: busybox
  40. spec:
  41.   containers:
  42.     - resources:
  43.         limits :
  44.           cpu: 0.5
  45.       image: busybox:latest
  46.       name: busybox
  47.       command: ["/bin/sh", "-c", "sleep 3600"]
  48.       volumeMounts:
  49.         - mountPath: /mydata
  50.           name: datavo1
  51.   volumes:
  52.     - name: datavo1
  53.       cinder:
  54.         volumeID: d94db4e5-0274-4a74-8464-9651e6af31d9
  55.         fsType: ext4
  56. cinder list
  57. +--------------------------------------+-----------+------------------+-----------+------+-------------+----------+-------------+-------------+
  58. |                  ID                  |   Status  | Migration Status |    Name   | Size | Volume Type | Bootable | Multiattach | Attached to |
  59. +--------------------------------------+-----------+------------------+-----------+------+-------------+----------+-------------+-------------+
  60. | d94db4e5-0274-4a74-8464-9651e6af31d9 | available |        -         | kube-test |  10  |   storage   |  false   |    False    |             |
  61. +--------------------------------------+-----------+------------------+-----------+------+-------------+----------+-------------+-------------+
  62.    
  63. kubectl describe pod busybox
  64. Name:           busybox
  65. Namespace:      default
  66. Node:           k8s-compute02/10.10.10.122
  67. Start Time:     Tue, 06 Dec 2016 04:10:00 -0500
  68. Labels:         name=busybox
  69. Status:         Pending
  70. IP:
  71. Controllers:    <none>
  72. Containers:
  73.   busybox:
  74.     Container ID:
  75.     Image:              busybox:latest
  76.     Image ID:
  77.     Port:
  78.     Command:
  79.       /bin/sh
  80.       -c
  81.       sleep 3600
  82.     Limits:
  83.       cpu:      500m
  84.     Requests:
  85.       cpu:              500m
  86.     State:              Waiting
  87.       Reason:           ContainerCreating
  88.     Ready:              False
  89.     Restart Count:      0
  90.     Volume Mounts:
  91.       /mydata from datavo1 (rw)
  92.       /var/run/secrets/kubernetes.io/serviceaccount from default-token-zfvqo (ro)
  93.     Environment Variables:      <none>
  94. Conditions:
  95.   Type          Status
  96.   Initialized   True
  97.   Ready         False
  98.   PodScheduled  True
  99. Volumes:
  100.   datavo1:
  101.   <unknown>
  102.   default-token-zfvqo:
  103.     Type:       Secret (a volume populated by a Secret)
  104.     SecretName: default-token-zfvqo
  105. QoS Class:      Burstable
  106. Tolerations:    <none>
  107. Events:
  108.   FirstSeen     LastSeen        Count   From                    SubobjectPath   Type            Reason          Message
  109.   ---------     --------        -----   ----                    -------------   --------        ------          -------
  110.   17h           8m              465     {kubelet k8s-compute02}                 Warning         FailedMount     Unable to mount volumes for pod "busybox_default(c419f17d-bb93-11e6-a1bd-fa163e1181a8)": timeout expired waiting for volumes to attach/mount for pod "busybox"/"default". list of unattached/unmounted volumes=[datavo1]
  111.   17h           8m              465     {kubelet k8s-compute02}                 Warning         FailedSync      Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "busybox"/"default". list of unattached/unmounted volumes=[datavo1]
  112.   3m            55s             2       {kubelet k8s-compute02}                 Warning         FailedMount     Unable to mount volumes for pod "busybox_default(c419f17d-bb93-11e6-a1bd-fa163e1181a8)": timeout expired waiting for volumes to attach/mount for pod "busybox"/"default". list of unattached/unmounted volumes=[datavo1]
  113.   3m            55s             2       {kubelet k8s-compute02}                 Warning         FailedSync      Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "busybox"/"default". list of unattached/unmounted volumes=[datavo1]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top