Skip to content

Instantly share code, notes, and snippets.

Avatar

Duffie Cooley mauilion

View GitHub Profile
View inventory.yaml
[masters]
master1 – 172.22.57.21
master2 – 172.22.57.22
master3 – 172.22.57.23
[nodes]
node1 – 172.22.57.27
node2 – 172.22.57.28
node3 – 172.22.57.29
node4 – 172.22.57.30
View torcx-howto.md

Torcx requires three things to operate.

  1. /etc/torcx/next-profile
    • This contains the word "docker" and is a pointer to the profile name below.
  2. /etc/torcx/profiles/docker.json
    • This is the name of a profile with the following content:
{
    "kind": "profile-manifest-v0",
    "value": {
View rbac all
"/api/"
"/api/v1/"
"/api/v1/componentstatuses"
"/api/v1/componentstatuses/{name}"
"/api/v1/configmaps"
"/api/v1/endpoints"
"/api/v1/events"
"/api/v1/limitranges"
"/api/v1/namespaces"
"/api/v1/namespaces/{namespace}/bindings"
@mauilion
mauilion / output of terraform plan
Last active Jun 23, 2018
example of element() and lookup()
View output of terraform plan
$ terraform plan | grep -v computed
Terraform will perform the following actions:
+ aws_instance.example[0]
ami: "ami-2801e54b"
availability_zone: "us-west-1b"
get_password_data: "false"
instance_type: "t2-micro"
source_dest_check: "true"
tags.%: "1"
View gist:144c975e8c10c5b1475b46fb21c73571
### Keybase proof
I hereby claim:
* I am mauilion on github.
* I am mauilion (https://keybase.io/mauilion) on keybase.
* I have a public key ASBJ2N9P0K0h58m1nuXYP10ZRaFjN_n9IvF2GMiOgPihQAo
To claim this, I am signing this object:
View added annotation
I0720 23:41:20.764217 9 store.go:533] updating annotations information for ingress kube-system/kubernetes-dashboard
I0720 23:41:20.764355 9 main.go:109] No default affinity was found for Ingress kubernetes-dashboard
I0720 23:41:20.764437 9 store.go:547] updating references to secrets for ingress kube-system/kubernetes-dashboard
I0720 23:41:20.764453 9 nginx.go:312] Event UPDATE received - object &Ingress{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:kubernetes-dashboard,GenerateName:,Namespace:kube-system,SelfLink:/apis/extensions/v1beta1/namespaces/kube-system/ingresses/kubernetes-dashboard,UID:a3e72ca1-8c5f-11e8-80a7-0800278e07dd,ResourceVersion:94002,Generation:1,CreationTimestamp:2018-07-20 20:58:23 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{kubernetes.io/ingress.class: px-prd1002-std-ingress,nginx.ingress.kubernetes.io/auth-signin: https://dashboard.v.k8s.work/oauth2/start?rd=https://$
@mauilion
mauilion / binary.yaml
Created Jul 31, 2018
problem with packaging.
View binary.yaml
$ sonobuoy version
v0.11.5
$ strings sonobuoy | grep -A80 kind..DaemonSet
kind: DaemonSet
metadata:
annotations:
sonobuoy-driver: DaemonSet
sonobuoy-plugin: {{.PluginName}}
sonobuoy-result-type: {{.ResultType}}
labels:
View ingressheaders.yaml
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: headers
labels:
run: header
spec:
rules:
- http:
View kuebadm-1.13
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: "10.192.0.2"
bindPort: 6443
bootstrapTokens:
- groups:
- system:bootstrappers:kubeadm:default-node-token
# token: ...
ttl: 24h0m0s