Skip to content

Instantly share code, notes, and snippets.

Peter Wang peter-wangxu

  • Ant Financial
  • Shanghai, China
Block or report user

Report or block peter-wangxu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9c75ce89c6ebf5e3cf113cd5e9a8b470
# 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
@peter-wangxu
peter-wangxu / cinder.conf.unity
Created Oct 4, 2017
cinder volume conf for unity
View cinder.conf.unity
[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
@peter-wangxu
peter-wangxu / docker-compose.yml
Last active Oct 4, 2017
cinder volume docker-compose.yml
View docker-compose.yml
version: "2"
services:
rabbitmq:
image: rabbitmq
ports:
- "5672:5672"
hostname: rabbitmq
networks:
cindernet:
ipv4_address: 172.49.49.5
You can’t perform that action at this time.