I hereby claim:
- I am sirhopcount on github.
- I am sirhopcount (https://keybase.io/sirhopcount) on keybase.
- I have a public key whose fingerprint is E627 113D 9BA1 6C88 86FB 7AFC F688 D69D 8082 512C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# configures bash prompt based on current kubernetes cluster context and namespace | |
# based on https://pracucci.com/display-the-current-kubelet-context-in-the-bash-prompt.html | |
__kube_ps1() | |
{ | |
CONTEXT=$(kubectl config view | grep current-context | awk '{ print $NF }' | awk -F '.' '{ print $1 }') | |
NS=$(kubectl config view $(kubectl config current-context) | grep namespace | awk '{ print $2 }') | |
if [ -n "$CONTEXT" ]; then | |
echo "[${CONTEXT}][${NS}]" |
$ echo 'deb http://repo.aptly.info/ squeeze main' > /etc/apt/sources.list.d/aptly.list && wget -qO - https://www.aptly.info/pubkey.txt | sudo apt-key add -
$ apt-get update && apt-get install -y -f aptly
[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 |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: minio | |
labels: | |
app: minio | |
spec: | |
clusterIP: None | |
ports: | |
- port: 9000 |
# lib/authentications/authentication.rb | |
# @api auth | |
# Authentication base class | |
# | |
module Authentication | |
def self.included(base) | |
base.class_eval do | |
before :authenticate! | |
expose :current_user |
This uses terraform's template_file
resource to generate a yaml properties file for serverspec to use.
spec
directory and put spec_helper.rb
in ittemplates/properties.tmpl.yml
fileserverspec.tf
terraform apply
Tests will be matched based on roles defined for a given node.
#cloud-config | |
--- | |
coreos: | |
units: | |
- name: update-fleet-metadata.service | |
command: start | |
content: |- | |
[Unit] | |
Description=Update Fleet metadata tag | |
Before=fleet.service |
#!/bin/bash | |
APP='flannel-conf' | |
[[ "$DEBUG" == 'true' ]] && set -x | |
K8S_CLUSTER_ID=${K8S_CLUSTER_ID:?"${APP}: \$K8S_CLUSTER_ID is not set"} | |
K8S_S3_BUCKET=${K8S_S3_BUCKET:?"${APP}:\$K8S_S3_BUCKET is not set"} | |
SERVER_CERTIFICATES="flannel.pem flannel-key.pem" | |
CERTIFICATES="ca.pem" |