Skip to content

Commit

Permalink
config and secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud ALCABAS committed Jun 16, 2023
1 parent 82bee82 commit f85e715
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 0 deletions.
Binary file added assets/images/config/cleanup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/config/create1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/config/create2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/config/ok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/config/pod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/ingress/cleanup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,44 @@ permalink: /config
nav_order: 7
---
# ConfigMap and Secret
## Create configmap and secret

```
kubectl apply -f exercice-files/lab7-1.yaml
```

![](assets/images/config/create1.png)

## Create same deployment in both namespace

```
kubectl apply -n ns1 -f exercice-files/lab7-2.yaml
```

```
kubectl apply -n ns2 -f exercice-files/lab7-2.yaml
```

![](asset/images/config/create2.png)

## Check applications

```
kubectl get pod -A -l app=test-cm-sec
```

![](asset/images/config/pod.png)

```
kubectl exec -n {NAMESPACE} -i {POD NAME} -- wget -qO- http://127.0.0.1
```

![](asset/images/config/ok.png)

## Cleanup

```
kubectl delete -f exercice-files/lab7-1.yaml
```

(Deleting a namespace trigger deletion of its resource)
8 changes: 8 additions & 0 deletions ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,11 @@ kubectl apply -f exercice-files/lab6-3.yaml
(It may take a few minutes before Let's Encrypt issue the TLS certificate, due to rate limit)

![](assets/images/ingress/ok.png)

# Cleanup

```
kubectl delete -f exercice-files/lab6-3.yaml -f exercice-files/lab6-2.yaml
```

![](assets/images/ingress/cleanup.png)

0 comments on commit f85e715

Please sign in to comment.