Skip to content

Instantly share code, notes, and snippets.

View christopherhein's full-sized avatar

Christopher Hein christopherhein

View GitHub Profile
kind cluster create --config kind-config.yaml
kind create cluster
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: accounts.apigateway.awsoperator.io
spec:
group: apigateway.awsoperator.io
versions:
- name: v1alpha1
served: true
@christopherhein
christopherhein / Extending-K8s-With-CRDs-and-Operators.pdf
Last active April 25, 2019 08:04
Extending Kubernetes with CRDs and Controllers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: targetgroups.elasticloadbalancingv2.awsoperator.io
spec:
group: elasticloadbalancingv2.awsoperator.io
versions:
- name: v1alpha1
served: true
@christopherhein
christopherhein / cr.yaml
Last active July 13, 2019 17:35
Example CRs for AWS Service Operator
$ kubectl get aws
NAME STATUS CREATED AT
apigatewaygatewayresponse.awsctrl.io/example-apigateway-gatewayresponse 11m
NAME STATUS CREATED AT
ec2eip.awsctrl.io/example-ec2-eip 11m
NAME STATUS CREATED AT
ec2vpccidrblock.awsctrl.io/example-ec2-vpccidrblock 11m
NAME STATUS CREATED AT
guarddutythreatintelset.awsctrl.io/example-guardduty-threatintelset 11m
NAME STATUS CREATED AT
→ kubectl get crds
NAME CREATED AT
alexaaskskills.awsctrl.io 2019-01-17T09:41:38Z
amazonmqbrokers.awsctrl.io 2019-01-17T09:41:33Z
amazonmqconfigurationassociations.awsctrl.io 2019-01-17T09:41:33Z
amazonmqconfigurations.awsctrl.io 2019-01-17T09:41:33Z
apigatewayaccounts.awsctrl.io 2019-01-17T09:41:33Z
apigatewayapikeys.awsctrl.io 2019-01-17T09:41:33Z
apigatewayauthorizers.awsctrl.io 2019-01-17T09:41:33Z
apigatewaybasepathmappings.awsctrl.io 2019-01-17T09:41:33Z
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller-cluster-rule \
--clusterrole=cluster-admin \
--serviceaccount=kube-system:tiller
helm init --service-account tiller
@christopherhein
christopherhein / dynamodb-app.yaml
Created October 4, 2018 21:14
Sample DynamoDB AWS Operator Manifest
---
apiVersion: service-operator.aws/v1alpha1
kind: DynamoDB
metadata:
name: dynamo-table
spec:
hashAttribute:
name: name
type: S
rangeAttribute: