Skip to content

Instantly share code, notes, and snippets.

View rootfs's full-sized avatar
🎯
Focusing

Huamin Chen rootfs

🎯
Focusing
View GitHub Profile
@rootfs
rootfs / .md
Last active May 12, 2016 01:02
apiVersion: v1
kind: ReplicationController
metadata:
name: nfs-web
spec:
replicas: 1
selector:
role: web-frontend
template:
metadata:
kind: ReplicationController
metadata:
name: nfs-web
spec:
replicas: 1
selector:
role: web-frontend
template:
metadata:
labels:
# _output/bin/kubectl describe pod
Name: nfs-web-6l5mx
Namespace: default
Node: rootfs-dev/172.24.0.4
Start Time: Fri, 05 Aug 2016 02:02:10 +0000
Labels: role=web-frontend
Status: Running
IP: 172.17.0.2
Controllers: ReplicationController/nfs-web
Containers:
KUBERNETES_PROVIDER=azure ALLOW_PRIVILIGED=true CLOUD_PROVIDER=azure CLOUD_CONFIG=/etc/cloud.conf HOSTNAME_OVERRIDE="rootfs-dev" LOG_LEVEL=5 hack/local-up-cluster1.sh -o `pwd`/_output/bin
# grep -a -i attacher /tmp/kube*
/tmp/kube-controller-manager.log:I0805 02:04:12.130109 12657 attacher.go:102] Attach operation successful: volume "https://openshiftstoragede1802.blob.core.windows.net/vhds/test7.vhd" attached to node "rootfs-dev".
/tmp/kubelet.log:I0805 02:04:20.081425 12600 attacher.go:135] Checking Azure disk "test7.vhd"(lun 0) is attached.
/tmp/kubelet.log:I0805 02:04:20.083265 12600 attacher.go:138] Successfully found attached Azure disk "test7.vhd"(lun 0, device path /dev/sdc).

Created 3 pods, each attaches to a azure disk

[root@rootfs-dev kubernetes]# _output/bin/kubectl get pod --all-namespaces
NAMESPACE   NAME                READY     STATUS    RESTARTS   AGE
default     nfs-web-big-ko4nz   1/1       Running   0          7m
default     nfs-web-r3qv4       1/1       Running   0          8m
default     nfs-web11-8komm     1/1       Running   0          8m
[root@rootfs-dev kubernetes]# _output/bin/kubectl create ^C test1.yaml 
[root@rootfs-dev kubernetes]#  /root/azure-cli/bin/azure vm disk  list -g openshift-storage-dev rootfs-dev 
info:    Executing command vm disk list
@rootfs
rootfs / .md
Created September 13, 2016 14:16
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: claim1
  annotations:
    volume.beta.kubernetes.io/storage-class: slow
spec:
  accessModes:
diff --git a/test/e2e/volumes.go b/test/e2e/volumes.go
index b67608d..775d8b2 100644
--- a/test/e2e/volumes.go
+++ b/test/e2e/volumes.go
@@ -370,8 +370,9 @@ var _ = framework.KubeDescribe("Volumes [Feature:Volumes]", func() {
config := VolumeTestConfig{
namespace: namespace.Name,
prefix: "nfs",
- serverImage: "gcr.io/google_containers/volume-nfs:0.6",
- serverPorts: []int{2049},