This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEFAULT] | |
rootwrap_config = /etc/cinder/rootwrap.conf | |
api_paste_confg = /etc/cinder/api-paste.ini | |
iscsi_helper = tgtadm | |
volume_name_template = volume-%s | |
volume_group = cinder-volumes | |
verbose = True | |
auth_strategy = noauth | |
state_path = /var/lib/cinder | |
lock_path = /var/lock/cinder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
rabbitmq: | |
image: rabbitmq | |
ports: | |
- "5672:5672" | |
hostname: rabbitmq | |
networks: | |
cindernet: | |
ipv4_address: 172.49.49.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kubectl apply -f pv.yaml | |
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
metadata: | |
name: local-storage | |
provisioner: kubernetes.io/no-provisioner | |
volumeBindingMode: WaitForFirstConsumer | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# your server name goes here | |
server=https://<your apiserver address>:6443 | |
# the name of the secret containing the service account token goes here | |
name=crd-reader-sa-token-rz5xp | |
# namespace to use, set NAMESPACE_OVERRIDE to use other namespace | |
namespace=${NAMESPACE_OVERRIDE:=default} | |
ca=$(kubectl get secret/$name -o jsonpath='{.data.ca\.crt}' -n $namespace) | |
token=$(kubectl get secret/$name -o jsonpath='{.data.token}' -n $namespace | base64 --decode) | |
namespace=$(kubectl get secret/$name -o jsonpath='{.data.namespace}' -n $namespace | base64 --decode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 参考文档:https://medium.com/%E6%95%B8%E6%93%9A%E4%B8%8D%E6%AD%A2-not-only-data/macos-%E7%9A%84-terminal-%E5%A4%A7%E6%94%B9%E9%80%A0-iterms-oh-my-zsh-%E5%85%A8%E6%94%BB%E7%95%A5-77d5aae87b10 | |
# 安装brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install zsh | |
brew install git | |
brew install iterm2 | |
brew install maven | |
brew install golang | |
# 安装oh-my-zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/golang/glog" | |
v1 "k8s.io/api/core/v1" | |
"k8s.io/apimachinery/pkg/watch" | |
"strings" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"compress/gzip" | |
"context" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" |