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 ``` |
||
---|---|---|
.. | ||
util | ||
completion.go | ||
create.go | ||
create_cluster.go | ||
create_cluster_integration_test.go | ||
create_cluster_test.go | ||
create_ig.go | ||
create_secret.go | ||
create_secret_dockerconfig.go | ||
create_secret_sshpublickey.go | ||
create_secret_tls.go | ||
createcluster_test.go | ||
delete.go | ||
delete_cluster.go | ||
delete_confirm_test.go | ||
delete_instancegroup.go | ||
delete_secret.go | ||
describe.go | ||
describe_secrets.go | ||
edit.go | ||
edit_cluster.go | ||
edit_federation.go | ||
edit_instancegroup.go | ||
editor.go | ||
export.go | ||
export_kubecfg.go | ||
gen_help_docs.go | ||
get.go | ||
get_cluster.go | ||
get_federation.go | ||
get_instancegroups.go | ||
get_secrets.go | ||
import.go | ||
import_cluster.go | ||
integration_test.go | ||
main.go | ||
pkix.go | ||
replace.go | ||
rollingupdate.go | ||
rollingupdatecluster.go | ||
root.go | ||
status_discovery.go | ||
toolbox.go | ||
toolbox_convert_imported.go | ||
toolbox_dump.go | ||
toolbox_template.go | ||
update.go | ||
update_cluster.go | ||
update_federation.go | ||
upgrade.go | ||
upgrade_cluster.go | ||
validate.go | ||
validate_cluster.go | ||
version.go |