mirror of https://github.com/kubernetes/kops.git
Automatic merge from submit-queue MVP of templating MVP implementation of templating to generate cluster.yaml file: related to #2404 implementation is using the `text/template` ```bash cat > values.yaml <<EOF clusterName: eu1 kubernetesVersion: 1.7.1 dnsZone: k8s.example.com awsRegion: eu-west-1 EOF ``` ```bash cat > cluster.tmpl.yaml <<EOF apiVersion: kops/v1alpha2 kind: InstanceGroup metadata: labels: kops.k8s.io/cluster: {{.clusterName}}.{{.dnsZone}} name: nodes spec: image: coreos.com/CoreOS-stable-1409.6.0-hvm machineType: m4.large maxPrice: "0.5" maxSize: 2 minSize: 15 role: Node rootVolumeSize: 100 subnets: - {{.awsRegion}}a - {{.awsRegion}}b - {{.awsRegion}}c EOF ``` running the templating command ```bash kops toolbox template \ --values values.yaml \ --template cluster.tmpl.yaml \ --output cluster.yaml ``` output ```bash apiVersion: kops/v1alpha2 kind: InstanceGroup metadata: labels: kops.k8s.io/cluster: eu1.k8s.example.com name: nodes spec: image: coreos.com/CoreOS-stable-1409.6.0-hvm machineType: m4.large maxPrice: "0.5" maxSize: 2 minSize: 15 role: Node rootVolumeSize: 100 subnets: - eu-west-1a - eu-west-1b - eu-west-1c ``` |
||
---|---|---|
.. | ||
kops | ||
kops-server | ||
nodeup |