Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blakebarnett on github.
  • I am shadoi (https://keybase.io/shadoi) on keybase.
  • I have a public key ASA1DGE5I9Su1nCDeMTKPsrVXdOmuUCGcRg9HHv0qkOHMwo

To claim this, I am signing this object:

#!/usr/bin/env python
import sys
import re
import requests
from requests_oauthlib import OAuth2Session
def main():
redirect_uri = 'http://127.0.0.1:5555/callback'
apiVersion: kops/v1alpha1
kind: InstanceGroup
metadata:
name: nodes
labels:
kops.k8s.io/cluster: stage.us-west-2.aws.k8s
spec:
nodeLabels:
environment: stage
associatePublicIp: false
apiVersion: kops/v1alpha1
kind: InstanceGroup
metadata:
name: master-us-west-2c
labels:
kops.k8s.io/cluster: stage.us-west-2.aws.k8s
spec:
nodeLabels:
environment: stage
associatePublicIp: false
apiVersion: kops/v1alpha1
kind: InstanceGroup
metadata:
name: master-us-west-2b
labels:
kops.k8s.io/cluster: stage.us-west-2.aws.k8s
spec:
nodeLabels:
environment: stage
associatePublicIp: false
apiVersion: kops/v1alpha1
kind: InstanceGroup
metadata:
name: master-us-west-2a
labels:
kops.k8s.io/cluster: stage.us-west-2.aws.k8s
spec:
nodeLabels:
environment: stage
associatePublicIp: false
@blakebarnett
blakebarnett / us-west-2.aws.k8s.yaml
Last active March 22, 2017 21:02
example kops 1.5.x cluster spec (note this is from kops 1.4.x using the alpha channel)
apiVersion: kops/v1alpha1
kind: Cluster
metadata:
name: stage.us-west-2.aws.k8s
spec:
kubeAPIServer:
oidcCAFile: /srv/kubernetes/ca.crt
oidcClientID: kubernetes
oidcIssuerURL: https://dex.stage.us-west-2.aws.k8s:5556
clusterDNSDomain: stage.us-west-2.aws.k8s