gitops: add bash highlight

This commit is contained in:
Guilhem Lettron
2020-04-29 21:54:27 +02:00
parent 6f806ed200
commit 4888ec1f5b

View File

@@ -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
```