19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5 ■ Using the Tectonic Console

If the Pull Secret file is downloaded to a local machine, scp copy the file to the CoreOS instance for the

Kubernetes controller. First, the key pair may need to be copied to the local machine:

scp -i docker.pem ec2-user@ec2-52-201-216-175.compute-1.amazonaws.com:~/kubernetes-coreos.

pem ~/kubernetes-coreos.pem

The key pair used to SSH log in to the controller CoreOS instance is copied to the local machine.

Next copy the coreos-pull-secret.yml file to the controller instance:

scp -i kubernetes-coreos.pem /media/sf_VMShared/kubernetes/tectonic/coreos-pull-secret.yml

core@ec2-23-20-52-23.compute-1.amazonaws.com:~/coreos-pull-secret.yml

Another file required for the Tectonic Console is the Tectonic Console Manifest file tectonic-console.

yaml, which defines the Kubernetes deployment required to run a container for the Tectonic Console on the

Kubernetes cluster. Download the Tectonic Console Manifest from https://tectonic.com/enterprise/

docs/latest/deployer/files/tectonic-console.yaml. Copy the Tectonic Console Manifest to the

controller CoreOS instance.

scp -i kubernetes-coreos.pem /media/sf_VMShared/kubernetes/tectonic/tectonic-console.yaml

core@ec2-23-20-52-23.compute-1.amazonaws.com:~/tectonic-console.yaml

The Tectonic Console Manifest is copied to the controller CoreOS instance.

If the ls –l command is run on the CoreOS instance for the controller, the coreos-pull-secret.yml

and the tectonic-console.yaml files should be listed as shown in Figure 5-6.

Figure 5-6. Listing files in the controller CoreOS instance

Installing the Pull Secret and the Tectonic Console Manifest

Next, install the Pull Secret on the Kubernetes cluster:

kubectl create -f coreos-pull-secret.yml

A Kubernetes Secret called coreos-pull-secret is created; it will be used by Kubernetes to pull and

install the image for the Tectonic Console.

Next, install the Tectonic Console using the Tectonic Console Manifest, making use of the Pull Secret to

pull and install the image for the tectonic-console. The following command creates a replication controller

called tectonic-console.

kubectl create -f tectonic-console.yaml

122

List the pods, which should specify just the tectonic-console pod to be listed:

kubectl get pods -l tectonic-app=console

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!