Skip to content

Commit

Permalink
Lagt til mere
Browse files Browse the repository at this point in the history
  • Loading branch information
Modulus committed Feb 9, 2018
1 parent 2e2cbad commit 0cef8af
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Kjøring av en enkelt pod, Oppsett av cats and dogs applikasjonen til fagdag. Ha


## Kjøre cheatsheet på kubernetes
kubectl run cheat --port=80 --namespace=ditt-namespace --image=coderpews/kubernetes-cheat:0.2
kubectl run cheat --port=80 --namespace=ditt-namespace --image=sonatconsulting/kubernetes-cheat:0.5

## Bygge og kjøre cheatsheet container lokalt
docker build -t cheat .
Expand All @@ -27,7 +27,7 @@ kubectl get nodes

### Azure oppgave 2

Lage namespace
Lage namespace. Sliter du med å finne namespace navn, kan du bruke denne tjenesten: https://mrsharpoblunto.github.io/foswig.js/

```
kubectl create namepsace "ditt-namespace-navn"
Expand Down
25 changes: 25 additions & 0 deletions cheat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,31 @@ <h2 id="azShell">Azure shell kommandoer</h2>
</table>
</hr>

<h2 id="state">Kubectl for desired state</h2>
<p>Her er kommandoer for å deploye ønsket tilstand på en komponent</p>
<table class="table text-left">
<thead>
<tr>
<th scope="col">Mål</th>
<th scope="col">Kommando</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Deploye innhold i yml</th>
<td class="code-segment">kubectl apply -f filnavn.yml</td>
</tr>
<tr>
<th scope="row">Deploye innhold i yml</th>
<td class="code-segment">kubectl create -f filnavn.yml</td>
</tr>
<tr>
<th scope="row">Fjerne innhold i yml</th>
<td class="code-segment">kubectl delete -f filnavn.yml</td>
</tr>
</tbody>
</table>

<h2 id="namespace">Namespace shell kommandoer</h2>
<p>Husk at namespace navn kun kan innehold a-z, A-Z, 0-9 og bindestrek (-)</p>

Expand Down

0 comments on commit 0cef8af

Please sign in to comment.