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
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: test | |
spec: | |
capacity: | |
storage: 2Gi | |
accessModes: | |
- ReadWriteOnce | |
persistentVolumeReclaimPolicy: Retain |
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
##### Portworx storage class | |
kind: StorageClass | |
apiVersion: storage.k8s.io/v1beta1 | |
metadata: | |
name: portworx-io-priority-high | |
provisioner: kubernetes.io/portworx-volume | |
parameters: | |
repl: "1" | |
snap_interval: "70" | |
io_priority: "high" |
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
##### Portworx storage class | |
kind: StorageClass | |
apiVersion: storage.k8s.io/v1beta1 | |
metadata: | |
name: portworx-io-priority-high | |
provisioner: kubernetes.io/portworx-volume | |
parameters: | |
repl: "1" | |
snap_interval: "70" | |
io_priority: "high" |
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
#!/bin/bash | |
# Deploy ETCD | |
docker run --restart=always --name etcd -v /data/varlib/etcd -p 4001:4001 -d portworx/etcd:latest | |
# (Optional) Create test loopback device | |
# dd if=/dev/zero of=my_fs bs=1M count=2048 | |
# losetup /dev/loop0 my_fs | |
# List devices |
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
#!/bin/bash | |
export ETCD_INITIAL_CLUSTER_TOKEN=$(python -c "import string; import random; print(''.join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(40)))") | |
export ETCD_DISCOVERY_TOKEN=$(python -c "import string; import random; print(\"etcd-cluster-\" + ''.join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(5)))") | |
curl -o 3-node-etcd.yaml https://gist.githubusercontent.com/harsh-px/52788ae08f6e01c5fb2bf278971267e2/raw/62e706072418e49fbeaedf633a01e32166dd041d/3-node-etcd.yaml | |
sed -i.bak -e "s/INSERT_ETCD_INITIAL_CLUSTER_TOKEN/\"${ETCD_INITIAL_CLUSTER_TOKEN}\"/g" -e "s/INSERT_ETCD_DISCOVERY_TOKEN/\"${ETCD_DISCOVERY_TOKEN}\"/g" 3-node-etcd.yaml | |
kubectl apply -f 3-node-etcd.yaml |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: etcd-discovery | |
spec: | |
strategy: | |
type: Recreate | |
replicas: 1 | |
selector: | |
matchLabels: |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: kube-controller-manager | |
namespace: kube-system | |
labels: | |
tier: control-plane | |
k8s-app: kube-controller-manager | |
spec: | |
replicas: 2 |
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
# vi: set ft=ruby : | |
require 'fileutils' | |
require 'tempfile' | |
NODE_COUNT = 3 | |
MASTER_NAME = "master" | |
MINION_PREFIX = "minion-" | |
SUBNET = '192.168.33' |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: px-user | |
namespace: default | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: px-user |
NewerOlder