service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval
(in minutes)service.beta.kubernetes.io/aws-load-balancer-access-log-enabled
(true|false)service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name
service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags
(comma-separated list of key=value)service.beta.kubernetes.io/aws-load-balancer-backend-protocol
(http|https|ssl|tcp)service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled
(true|false)
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
#compdef pyenv | |
# Ref: https://github.com/pyenv/pyenv/pull/1644 | |
if [[ ! -o interactive ]]; then | |
return | |
fi | |
local state line | |
typeset -A opt_args |
[Verifying my cryptographic key:openpgp4fpr:4C556569AD90DE0419009E974A31C228815AA553]
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: rbac.authorization.k8s.io/v1beta1 | |
kind: Role | |
metadata: | |
name: heapster-user | |
rules: | |
- apiGroups: | |
- "" | |
resourceNames: | |
- "http:heapster:" |
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
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
function asp { | |
if [[ -z "$1" ]]; then | |
if [[ -z "$AWS_DEFAULT_PROFILE" ]]; then | |
echo "No profile set" | |
else | |
asp "$AWS_DEFAULT_PROFILE" | |
echo "$AWS_DEFAULT_PROFILE" | |
fi | |
else | |
if ! fgrep -q "[profile $1]" ~/.aws/config; then |
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
[Unit] | |
Description=Format EBS volume if needed | |
Before=etcd2.service | |
[Service] | |
ExecStart=/bin/bash -c \ | |
'(/usr/sbin/blkid -t TYPE=ext4 | grep /dev/xvdb) || \ | |
(/usr/sbin/wipefs -fa /dev/xvdb && /usr/sbin/mkfs.ext4 /dev/xvdb)' | |
RemainAfterExit=yes | |
Type=oneshot |
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
[Unit] | |
Description=Mount EBS volume at /var/lib/etcd2 | |
Requires=format-etcd-ebs.service | |
After=format-etcd-ebs.service | |
Before=etcd2.service | |
[Mount] | |
DirectoryMode=0777 | |
Type=ext4 | |
What=/dev/xvdb |
kubectl -n kube-system create sa kube-dns
kubectl -n kube-system patch deploy/kube-dns -p '{"spec": {"template": {"spec": {"serviceAccountName": "kube-dns"}}}}'
NewerOlder