Search Header Logo
Untitled Lesson

Untitled Lesson

Assessment

Presentation

Computers

Professional Development

Practice Problem

Hard

Created by

Alex Ewings

FREE Resource

12 Slides • 8 Questions

1

TKG Secrets Review
Where to find secrets
& how to login to the nodes that contain them

Recap of Franklyns workshop on Secrets

2

Multiple Choice

What node(s) do you want to retrieve the secret/password for,

so that you can ultimately look at logs pertaining to the problematic apps that your kubernetes environment is running ?

1

Controlplane Node

2

Worker Node

3

Both

3

What node do you ultimately want to retrieve the secret/password for, so that you can look at logs pertaining to problematic apps your kubernetes environment is running ?

Both the supervisor control plane node and the worker nodes secrets need to be retrieved for you to ultimately get the logs

4

Whats the process of getting those secrets

Which of the following is the correct 1st step ?

SSH into the control plane node

SSH into vSphere

SSH into the worker node









5

Multiple Choice

Which of the following is the correct 1st step ?



1

SSH into the control plane node

2

SSH into vSphere

3

SSH into a worker node

6

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere
here you will find the secret to ssh into the _____ node











7

Multiple Choice

The secret found in vSphere will allow you to ssh into which node ?

1

Worker node

2

Controlplane node

8

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere
here you will find the
password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
whats the path of this directory?









9

Multiple Choice

Whats the full path (in vSphere) of the directory containing the login secret to ssh into controlplane node ?

(whats the most accurate example)

1

/etc/vmware/wcp/encryption-config.yaml 

2

/usr/lib/vmware-wcp/decryptK8Pwd.py

3

/registry/secrets/ns1/wl1-22-ssh-password

10

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere
here you will find the
password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
path: /usr/lib/vmware-wcp/decryptK8Pwd.py
note: you will use "pwd" to then ssh into the controlplane








media

11

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere ...here you will find the password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
path: /usr/lib/vmware-wcp/decryptK8Pwd.py
note: you will use "pwd" to then ssh into the controlplane


Step 3 - get the ip address of the controlplane VM, then SSH into it using the "pwd"






media
media

12

Multiple Choice

Which of the following can be used to locate the IP address of your controlpane VM's

1

google

2

Vcenter

3

traceroute

13

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere ...here you will find the password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
path: /usr/lib/vmware-wcp/decryptK8Pwd.py
note: you will use "pwd" to then ssh into the controlplane


Step 3 - get the ip address of the controlplane VM, then SSH into it using the "pwd"
the ip address can be found in vCenter






media

14

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere ...here you will find the password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
path: /usr/lib/vmware-wcp/decryptK8Pwd.py
note: you will use "pwd" to then ssh into the controlplane


Step 3 - get the ip address of the controlplane VM, so you can SSH to it using the "pwd"
the ip address can be found in vCenter

Step 4 - SSH to the control plane vm

Step 5 - Then we run the command to get the secret to ssh into the worker node

what is the command to get the secret ?




media
media

15

Multiple Choice

What is the command to get the secret ?

1

kubectl get secrets wl1-22-ssh-password -o json

2

kubectl get secrets -n <namespace> wl1-22-ssh-secret -o json

3

kubectl get secrets -n <namespace> wl1-22-ssh-password -o json

16

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere ...here you will find the password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
path: /usr/lib/vmware-wcp/decryptK8Pwd.py
note: you will use "pwd" to then ssh into the controlplane


Step 3 - get the ip address of the controlplane VM, so you can SSH to it using the "pwd"
the ip address can be found in vCenter

Step 4 - SSH into the control plane vm

Step 5 - Then we run the command to get the secret that will allows us to ssh into the worker node
--> kubectl get secrets -n <namespace> wl1-22-ssh-password -o json

Step 6 - Decode the "ssh-password" secret so that it can be used to ssh into a worker node
Q: How would the secret be decoded, whats the command to do this ?



media
media

17

Fill in the Blanks

18

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere ...here you will find the password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
path: /usr/lib/vmware-wcp/decryptK8Pwd.py
note: you will use "pwd" to then ssh into the controlplane


Step 3 - get the ip address of the controlplane VM, so you can SSH to it using the "pwd"
the ip address can be found in vCenter

Step 4 - SSH into the control plane vm

Step 5 - Then we run the command to get the secret that will allows us to ssh into the worker node
--> kubectl get secrets -n <namespace> wl1-22-ssh-password -o json





Step 6 - Decode the "ssh-passwordkey" secret so that it can be used to ssh into a worker node
Q: How would the secret be decoded, whats the command to do this ?



media
media
media

19

Fill in the Blanks

20

Whats the process of getting the secrets/passwords to nodes

Step 1 - you'll first SSH into vSphere ...here you will find the password to ssh into the controlplane node

Step 2 - navigate to the directory with the controlplane node secret
path: /usr/lib/vmware-wcp/decryptK8Pwd.py
note: you will use "pwd" to then ssh into the controlplane


Step 3 - get the ip address of the controlplane VM, so you can SSH to it using the "pwd"
the ip address can be found in vCenter

Step 4 - SSH into the control plane vm

Step 5 - Then we run the command to get the secret that will allows us to ssh into the worker node
--> kubectl get secrets -n <namespace> wl1-22-ssh-password -o json

Step 6 - Decode the "ssh-passwordkey" secret so that it can be used to ssh into a worker node
--> echo "haJhaijXhiasndhaij" | base64 -d

Step 7 - ssh into one of the worker nodes (with an worker node ip from Vcenter) using the decoded secret from above



media
media
media

TKG Secrets Review
Where to find secrets
& how to login to the nodes that contain them

Recap of Franklyns workshop on Secrets

Show answer

Auto Play

Slide 1 / 20

SLIDE