mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-06 00:46:56 +00:00
gitops: add bash highlight
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
## Setting up Flux
|
||||
|
||||
- Clone the Flux repository:
|
||||
```
|
||||
```bash
|
||||
git clone https://github.com/fluxcd/flux
|
||||
```
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
```
|
||||
|
||||
- Apply all the YAML:
|
||||
```
|
||||
```bash
|
||||
kubectl apply -f deploy/
|
||||
```
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
- When it starts, Flux generates an SSH key
|
||||
|
||||
- Display that key:
|
||||
```
|
||||
```bash
|
||||
kubectl logs deployment/flux | grep identity
|
||||
```
|
||||
|
||||
@@ -157,14 +157,14 @@
|
||||
## Setting up Gitkube
|
||||
|
||||
- Install the CLI:
|
||||
```
|
||||
```bash
|
||||
sudo curl -L -o /usr/local/bin/gitkube \
|
||||
https://github.com/hasura/gitkube/releases/download/v0.2.1/gitkube_linux_amd64
|
||||
sudo chmod +x /usr/local/bin/gitkube
|
||||
```
|
||||
|
||||
- Install Gitkube on the cluster:
|
||||
```
|
||||
```bash
|
||||
gitkube install --expose ClusterIP
|
||||
```
|
||||
|
||||
@@ -196,20 +196,20 @@
|
||||
## Pushing to our remote
|
||||
|
||||
- Get the `gitkubed` IP address:
|
||||
```
|
||||
```bash
|
||||
kubectl -n kube-system get svc gitkubed
|
||||
IP=$(kubectl -n kube-system get svc gitkubed -o json |
|
||||
jq -r .spec.clusterIP)
|
||||
```
|
||||
|
||||
- Get ourselves a sample repository with resource YAML files:
|
||||
```
|
||||
```bash
|
||||
git clone git://github.com/jpetazzo/kubercoins
|
||||
cd kubercoins
|
||||
```
|
||||
|
||||
- Add the remote and push to it:
|
||||
```
|
||||
```bash
|
||||
git remote add k8s ssh://default-example@$IP/~/git/default-example
|
||||
git push k8s master
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user