Last active
August 23, 2019 00:21
-
-
Save johnharris85/eddf34487f9bd95642ef7c3f00ba5aff to your computer and use it in GitHub Desktop.
Seattle DevOps Meetup - Kubernetes CAPI Demo
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: "cluster.k8s.io/v1alpha1" | |
kind: Cluster | |
metadata: | |
name: capa-test | |
spec: | |
clusterNetwork: | |
services: | |
cidrBlocks: ["10.96.0.0/12"] | |
pods: | |
cidrBlocks: ["192.168.0.0/16"] | |
serviceDomain: "cluster.local" | |
providerSpec: | |
value: | |
apiVersion: "awsprovider/v1alpha1" | |
kind: "AWSClusterProviderSpec" | |
region: "us-west-2" | |
sshKeyName: "kubeadm-ec2" |
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: "cluster.k8s.io/v1alpha1" | |
kind: MachineList | |
items: | |
- apiVersion: "cluster.k8s.io/v1alpha1" | |
kind: Machine | |
metadata: | |
name: capa-test-controlplane-0 | |
labels: | |
cluster.k8s.io/cluster-name: capa-test | |
set: controlplane | |
spec: | |
versions: | |
kubelet: v1.14.4 | |
controlPlane: v1.14.4 | |
providerSpec: | |
value: | |
apiVersion: awsprovider/v1alpha1 | |
kind: AWSMachineProviderSpec | |
instanceType: "t2.medium" | |
iamInstanceProfile: "control-plane.cluster-api-provider-aws.sigs.k8s.io" | |
keyName: "kubeadm-ec2" # CHANGE THIS |
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: "cluster.k8s.io/v1alpha1" | |
kind: MachineDeployment | |
metadata: | |
name: capa-test-machinedeployment | |
labels: | |
cluster.k8s.io/cluster-name: capa-test | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
cluster.k8s.io/cluster-name: capa-test | |
set: node | |
type: deployment | |
template: | |
metadata: | |
labels: | |
cluster.k8s.io/cluster-name: capa-test | |
set: node | |
type: deployment | |
spec: | |
versions: | |
kubelet: v1.14.4 | |
providerSpec: | |
value: | |
apiVersion: awsprovider/v1alpha1 | |
kind: AWSMachineProviderSpec | |
instanceType: "t2.medium" | |
iamInstanceProfile: "nodes.cluster-api-provider-aws.sigs.k8s.io" | |
keyName: "kubeadm-ec2" # CHANGE THIS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment