Skip to content

Instantly share code, notes, and snippets.

View rootfs's full-sized avatar
🎯
Focusing

Huamin Chen rootfs

🎯
Focusing
View GitHub Profile
rpcbind -w
rpc.statd --no-notify
[root@gprfs036 test]# more Dockerfile 
FROM ubuntu:xenial
MAINTAINER vishh@google.com

RUN apt-get update && apt-get install -y netbase nfs-common=1:1.2.8-9ubuntu12 glusterfs-client=3.7.6-1ubuntu1
ADD mymount.sh /mymount.sh 
ENTRYPOINT /mymount.sh

[root@gprfs036 test]# more mymount.sh 
[root@gprfs036 test]# more Dockerfile 
FROM ubuntu:xenial
MAINTAINER vishh@google.com

RUN apt-get update && apt-get install -y netbase nfs-common=1:1.2.8-9ubuntu12 glusterfs-client=3.7.6-1ubuntu1
ADD mymount.sh /mymount.sh 
ENTRYPOINT /mymount.sh $@

[root@gprfs036 test]# more mymount.sh 
Nov 22 23:04:57 k8s-agent-EE097672-2 docker[1625]: I1122 23:04:57.627481 1659 kubelet_node_status.go:409] Using Node Hostname from cloudprovider: "k8s-agent-ee097672-2"
Nov 22 23:05:00 k8s-agent-EE097672-2 docker[1625]: I1122 23:05:00.091048 1659 kubelet.go:1780] SyncLoop (ADD, "api"): "nexus-1b3g1_default(17d6fdca-b108-11e6-86f1-000d3a22f72b)"
Nov 22 23:05:00 k8s-agent-EE097672-2 docker[1625]: I1122 23:05:00.196060 1659 reconciler.go:230] VerifyControllerAttachedVolume operation started for volume "kubernetes.io/azure-disk/nexus-data.vhd" (spec.Name: "nexus-data") pod "17d6fdca-b108-11e6-86f1-000d3a22f72b" (UID: "17d6fdca-b108-11e6-86f1-000d3a22f72b")
Nov 22 23:05:00 k8s-agent-EE097672-2 docker[1625]: E1122 23:05:00.196090 1659 nestedpendingoperations.go:262] Operation for "\"kubernetes.io/azure-disk/nexus-data.vhd\"" failed. No retries permitted until 2016-11-22 23:05:00.696064466 +0000 UTC (durationBeforeRetry 500ms). Error: Volume "kubernetes.io/azure-disk/nexus-data.vhd" (spec.Name: "nexus-da
@rootfs
rootfs / .md
Created February 27, 2017 18:14
# _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

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
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: