-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
470 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# Exam preparations | ||
This repository contains a table of exams I've taken or am planning to take. | ||
|
||
I like to prepare for exams by creating a lab environment and automating the configuration of the lab devices, this is relevant to many of the exams I've taken. This repository contains such code when it does not fit in other projects, or links to projects which I started for the purpose of studying for exams. | ||
|
||
This repository is not to be used as a study guide, this will not be enough to study for an exam. I provide no guarantees that the information here is correct or up to date. This repository merely serves to house my notes and code for my own reference, but making it public might help others get inspiration. | ||
|
||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>Organisation</th> | ||
<th>Certification</th> | ||
<th>Exam</th> | ||
<th>Status</th> | ||
<th>Preparation Material</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td rowspan=9>Red Hat</td> | ||
<td rowspan=1>Certified System Administrator</td> | ||
<td>EX200</td> | ||
<td>🎉 2022-07-08</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Engineer</td> | ||
<td>EX294</td> | ||
<td>🎉 2022-09-02</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Specialist in Containers</td> | ||
<td>EX188</td> | ||
<td>🎉 2023-08-07</td> | ||
<td><code><a href="./RH-EX188">./RH-EX188</a></code></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Specialist in Ansible<br>Network Automation</td> | ||
<td>EX457</td> | ||
<td>🎉 2023-08-21</td> | ||
<td><code><a href="./RH-EX457">./RH-EX357</a></code></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Specialist in Developing<br>Automation with Ansible Automation Platform</td> | ||
<td>EX374</td> | ||
<td>🎉 2023-10-05</td> | ||
<td><code><a href="./RH-EX374">./RH-EX374</a></code></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Specialist in Managing<br>Automation with Ansible Automation Platform</td> | ||
<td>EX467</td> | ||
<td>WIP</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Specialist in Deployment and Systems Management</td> | ||
<td>EX403</td> | ||
<td>WIP</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Specialist in Services<br>Management and Automation</td> | ||
<td>EX358</td> | ||
<td>Todo</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified OpenShift Administrator</td> | ||
<td>EX280</td> | ||
<td>Todo</td> | ||
<td><code><a href="./RH-EX280">./RH-EX280</a></code></td> | ||
</tr> | ||
</tbody> | ||
<td colspan="5" class="divider"> | ||
<hr/> | ||
</td> | ||
<tbody> | ||
<tr> | ||
<td rowspan=5>SUSE</td> | ||
<td rowspan=1>Certified Administrator in Rancher 2.6</td> | ||
<td>sca-<br>rancher-2-6</td> | ||
<td rowspan=2>🎉 2023-06-13</td> | ||
<td rowspan=4><code><a href="./SUSE-RANCHER">./SUSE-RANCHER</a></code></td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Administrator in Rancher Manager 2.7 for Rancher Prime*</td> | ||
<td>sca-<br>rancher-2-7</td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Deployment Specialist in Rancher<br>Manager 2.7 for Rancher Prime</td> | ||
<td>scds_<br>rancher_mgr2_7</td> | ||
<td>🎉 2023-06-21</td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Deployment Specialist in SUSE<br>Rancher and Kubernetes Distributions</td> | ||
<td>scds-<br>ran-k8s</td> | ||
<td>🎉 2023-06-22</td> | ||
</tr> | ||
<tr> | ||
<td rowspan=1>Certified Administrator in Linux<br>Enterprise Server 15</td> | ||
<td>sca-<br>sles-15</td> | ||
<td>🎉 2023-06-22</td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
<td colspan="5" class="divider" span style="font-size:10px"> | ||
* = Automatically upgraded from sca-rancher-2-6 | ||
<hr/> | ||
</td> | ||
<tbody> | ||
<tr> | ||
<td rowspan=1>The Linux Foundation</td> | ||
<td rowspan=1>Certified Kubernetes Administrator</td> | ||
<td>CKA</td> | ||
<td>WIP</td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
<td colspan="5" class="divider"> | ||
<hr/> | ||
</td> | ||
<tbody> | ||
<tr> | ||
<td rowspan=1>Linux Professional Institute</td> | ||
<td rowspan=1>Linux Essentials</td> | ||
<td>LPIC-010</td> | ||
<td>🎉 2020-03-04</td> | ||
<td></td> | ||
</tr> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# EX188: Red Hat Certified Specialist in Containers exam | ||
For this I'm just going to create some containers using as many of the Containerfile keywords as possible, then run them in different ways with Podman. | ||
|
||
I passed this exam on 2023-08-07. Honestly, if you know where to find the letter "e" on your keyboard to pass env variables to a container, you're 99% of the way there. | ||
|
||
I didn't even need to use Compose for this exam, just to use Podman directly. | ||
|
||
# Exam Practice | ||
To ensure I'm not sharing exam details, these are notes I took *before* the exam based on studying the exam objectives. | ||
|
||
## Pre-requisites | ||
On Ubuntu: | ||
```bash | ||
sudo apt install podman podman-compose | ||
``` | ||
|
||
## Commands | ||
Run a container: | ||
```bash | ||
podman run -d --name container-a --restart unless-stopped localhost/container-a | ||
``` | ||
|
||
Stop a container: | ||
```bash | ||
podman stop container-a | ||
``` | ||
|
||
Remove a container: | ||
```bash | ||
podman rm container-a | ||
``` | ||
|
||
Run a container with a port: | ||
```bash | ||
podman run -d --name container-a --restart unless-stopped -p 8080:80 localhost/container-a | ||
``` | ||
|
||
Create a volume: | ||
```bash | ||
podman volume create volume-a | ||
``` | ||
|
||
Run a container with a volume: | ||
```bash | ||
podman run -d --name container-a --restart unless-stopped -v volume-a:/data localhost/container-a | ||
``` | ||
|
||
Run a container with a bind mount: | ||
```bash | ||
podman run -d --name container-a --restart unless-stopped -v /home/user/data:/data localhost/container-a | ||
``` | ||
|
||
Create a network: | ||
```bash | ||
podman network create network-a | ||
``` | ||
|
||
Run a container with a network: | ||
```bash | ||
podman run -d --name container-a --restart unless-stopped --network network-a localhost/container-a | ||
``` | ||
|
||
Run a container with an environment variable: | ||
```bash | ||
podman run -d --name container-a --restart unless-stopped -e VAR_A=VALUE_A localhost/container-a | ||
``` | ||
|
||
To create an archive for a container: | ||
```bash | ||
podman image save --format oci-archive -o container-a.tar.gz localhost/container-a | ||
``` | ||
|
||
Inspect the container image: | ||
```bash | ||
podman inspect localhost/container-a | ||
``` | ||
|
||
Inspect a running container: | ||
```bash | ||
podman inspect example-a_container-a_1 | ||
``` | ||
|
||
Get the logs from a running container: | ||
```bash | ||
podman logs example-a_container-a_1 | ||
``` | ||
|
||
Execute a command in a running container: | ||
```bash | ||
podman exec -it example-a_container-a_1 /bin/bash | ||
``` | ||
|
||
Run a compose project: | ||
```bash | ||
podman-compose up -d | ||
``` | ||
|
||
Stop a compose project: | ||
```bash | ||
podman-compose stop | ||
``` | ||
|
||
Bring down a compose project: | ||
```bash | ||
podman-compose down | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Example A | ||
|
||
Example A uses some common keywords to add files to a container, configure it and run it. | ||
|
||
## Run | ||
|
||
```bash | ||
podman-compose up | ||
``` | ||
|
||
## Stop | ||
|
||
```bash | ||
podman-compose down | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Example B | ||
|
||
Example B runs an iperf3 server and an iperf3 client in separate containers. | ||
|
||
## Run | ||
|
||
```bash | ||
podman-compose up | ||
``` | ||
|
||
## Stop | ||
|
||
```bash | ||
podman-compose down | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Example C | ||
|
||
Example C creates two containers that use a volume to share a directory between the host and the containers. The first container writes a file with the date into the container, the second container reads the file and prints it to the console. | ||
|
||
## Run | ||
|
||
```bash | ||
podman-compose up | ||
``` | ||
|
||
## Stop | ||
|
||
```bash | ||
podman-compose down | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# EX280: Red Hat Certified OpenShift Administrator exam | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Ansible Project - codeready-containers | ||
======================================== | ||
|
||
This is a codeready-containers project |
Oops, something went wrong.