Kubernetes:A Complete DevOps Cookbook
上QQ阅读APP看书,第一时间看更新

How it works…

This recipe showed you how to quickly deploy an OpenShift cluster on AWS.

In step 1we created a cluster using the default configuration of the installer-provisioned infrastructure. 

The installer asked a series of questions regarding user information and used mostly default values for other configuration options. These defaults can be edited and customized if needed using the install-config.yaml file.

To see the defaults that were used for the deployment, let's create an install-config.yaml file and view it:

$ ./openshift-install create install-config && cat install-config.yaml

As you can see from the following output, the file's default configuration creates a cluster consisting of three master and three worker nodes:

apiVersion: v1
baseDomain: k8s.containerized.me
compute:
- hyperthreading: Enabled
name: worker
platform: {}
replicas: 3
controlPlane:
hyperthreading: Enabled
name: master
platform: {}
replicas: 3
...

Edit install-config.yaml as needed. Next time you create the cluster, new parameters will be used instead.