Add a couple of AWS exercises and questions
MORE! :)
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
|
||||
|Name|Topic|Objective & Instructions|Solution|Comments|
|
||||
|--------|--------|------|----|----|
|
||||
| My First Project | Projects | [Exercise](projects_101.md) | [Solution](solutions/projects_101.md)
|
||||
| Projects 101 | Projects | [Exercise](projects_101.md) | [Solution](solutions/projects_101.md)
|
||||
| My First Application | Applications | [Exercise](my_first_app.md) | [Solution](solutions/my_first_app.md)
|
||||
|
||||
### OpenShift Self Assessment
|
||||
|
||||
@ -18,7 +19,7 @@ It can be used for deploying applications while having minimal management overhe
|
||||
<details>
|
||||
<summary>How OpenShift is related to Kubernetes?</summary><br><b>
|
||||
|
||||
It's built on top of Kubernetes while defining its own custom resources in addition to the built ones.
|
||||
OpenShift is build on top of Kubernetes while defining its own custom resources in addition to the built-in resources.
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
@ -27,6 +28,25 @@ It's built on top of Kubernetes while defining its own custom resources in addit
|
||||
False. OpenShift is a PaaS (platform as a service) solution.
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
<summary>True or False? OpenShift CLI supports everything kubectl supports, along with additional functionality</summary><br><b>
|
||||
|
||||
True
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
<summary>OpenShift supports many resources. How to get a list of all these resources?</summary><br><b>
|
||||
|
||||
`oc api-resources`
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
<summary>Explain OpenShift CLIs like <code>oc</code> and <code>odo</code></summary><br><b>
|
||||
|
||||
oc is used for creating applications, but also for administrating OpenShift cluster<br>
|
||||
odo is used solely for managing applications on OpenShift (mainly from developers' perspective) and has nothing to do with administrating the cluster
|
||||
</b></details>
|
||||
|
||||
## OpenShift - Architecture
|
||||
|
||||
<details>
|
||||
@ -69,7 +89,15 @@ In simpler words, think about it as an isolated environment for users to manage
|
||||
`oc adm policy add-role-to-user <role> <user> -n <project>`
|
||||
</b></details>
|
||||
|
||||
## OpenShift - Images
|
||||
#### OpenShift - Applications
|
||||
|
||||
<details>
|
||||
<summary>How to create a MySQL application using an image from Docker Hub?</summary><br><b>
|
||||
|
||||
`oc new-app mysql`
|
||||
</b></details>
|
||||
|
||||
#### OpenShift - Images
|
||||
|
||||
<details>
|
||||
<summary>What is an image stream?</summary><br><b>
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
### Objectives
|
||||
|
||||
In a newly deployed cluster (preferably) perform and answer the following instructions and questions, using CLI only
|
||||
In a newly deployed cluster (preferably) perform the following:
|
||||
|
||||
1. Login to the OpenShift cluster
|
||||
1. Log in to the OpenShift cluster
|
||||
2. List all the projects
|
||||
3. Create a new project called 'neverland'
|
||||
4. Check the overview status of the current project
|
||||
|
12
exercises/openshift/solutions/my_first_app.md
Normal file
12
exercises/openshift/solutions/my_first_app.md
Normal file
@ -0,0 +1,12 @@
|
||||
## OpenShift - My First Application
|
||||
|
||||
### Objectives
|
||||
|
||||
1. Create a MySQL application
|
||||
2. Describe which OpenShift objects were created
|
||||
|
||||
### Solution
|
||||
|
||||
1. `oc new-app mysql`
|
||||
2. The following objects were created:
|
||||
* ImageStream:
|
@ -2,7 +2,18 @@
|
||||
|
||||
### Objectives
|
||||
|
||||
1. Login to the OpenShift cluster -> `oc login -u YOUR_USER -p YOUR_PASSWORD_OR_TOKEN`
|
||||
2. List all the projects -> `oc get projects`(The output should be empty in a newly created cluster)
|
||||
3. Create a new project called 'neverland' -> `oc new-project neverland`
|
||||
4. Check the overview status of the current project -> `oc status`
|
||||
In a newly deployed cluster (preferably) perform the following:
|
||||
|
||||
1. Login to the OpenShift cluster
|
||||
2. List all the projects
|
||||
3. Create a new project called 'neverland'
|
||||
4. Check the overview status of the current project
|
||||
|
||||
### Solution
|
||||
|
||||
```
|
||||
oc login -u YOUR_USER -p YOUR_PASSWORD_OR_TOKEN
|
||||
oc get projects # Empty output in new cluster
|
||||
oc new-project neverland
|
||||
oc status
|
||||
```
|
||||
|
Reference in New Issue
Block a user