Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed task 2 and 5 #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Task2/secret-pod/imperative_kubernetes_cmd.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Task is to create a Secret and consume the Secret in a Pod using environment variables


#Solution
# Solution

Create a secret and add value to the key

Expand Down Expand Up @@ -49,7 +49,7 @@ type: Opaque
Check by decoding the secret

```shell
echo "dmFsdWUx" | decode64 -d
echo "dmFsdWUx" | base64 -d
```

Create a Pod definition using run cmd
Expand Down
6 changes: 3 additions & 3 deletions Task5/imperative_kubernetes_cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ Create a ServiceAccount
kubectl create serviceaccount app-service -n ns-prd
```

Create a Pod
Create a Deployment

```shell
kubectl run app --image=nginx --restart=Always -n ns-prd
kubectl create deployment app --image=nginx --restart=Always -n ns-prd
```

Get all the namespace
Expand All @@ -36,4 +36,4 @@ Verify the result

```shell
kubectl -n ns-prd describe deployments app | grep -i service
```
```