Skip to content

Instantly share code, notes, and snippets.

View rootfs's full-sized avatar
🎯
Focusing

Huamin Chen rootfs

🎯
Focusing
View GitHub Profile
apiVersion: v1
kind: Namespace
metadata:
name: azure-file-ns
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: system:controller:persistent-volume-binder
namespace: azure-file-ns
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: rook-ds
name: rook-ds
namespace: rook-system
spec:
selector:
matchLabels:
  1. Make changes locally
  2. Build (go and docker images)
  3. tests/scripts/minikube.sh up
  4. Go get a snack
  5. After the VM is up, kubernetes is ready now. Verify with a simple kubectl command from your host
  6. kubectl create -f rook-operator.yaml
  7. kubectl create -f rook-cluster.yaml
  8. go test -run -v SmokeSuite github.com/rook/rook/tests/integration/
FROM centos:7
RUN yum install -y ebtables ethtool iptables ipset docker
ADD hyperkube /bin/hyperkube
ADD kubelet /bin/kubelet
#!/bin/bash
docker run \
--volume=/:/rootfs:rw \
--volume=/var/run:/var/run:rw \
--volume=/sys:/sys:rw \
--volume=/sys/fs/cgroup:/sys/fs/cgroup:rw \
--volume=/var/lib/docker:/var/lib/docker:rw \
--volume=/var/lib/kubelet/:/var/lib/kubelet:rw \
--volume=/dev:/dev \
apiVersion: v1
kind: PersistentVolume
metadata:
name: csi-iscsi-pv
labels:
name: csi-iscsi-pv
spec:
accessModes:
- ReadWriteOnce
capacity:
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
apiVersion: v1
kind: Service
metadata:
name: elasticsearch-logging
labels:
k8s-addon: logging-elasticsearch.addons.k8s.io
k8s-app: elasticsearch-logging
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "Elasticsearch"
spec:

install helm binary

install helm following instructions at https://github.com/kubernetes/helm

set up local helm repo

helm init 
helm serve &
helm repo add local http://localhost:8879/charts
# _output/bin/kubectl get volumesnapshotdata -o yaml
apiVersion: v1
items:
- apiVersion: volume-snapshot-data.external-storage.k8s.io/v1
  kind: VolumeSnapshotData
  metadata:
    creationTimestamp: 2017-05-31T13:45:09Z
    name: snapshot-demo
 namespace: default