feat: try to use admonitions
This commit is contained in:
parent
875953af5c
commit
2686b33acd
1 changed files with 8 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
A quick and dirty guide for making the Gitlab Runner work on OCP. This is probably not what you want for you prodcution
|
||||
environment...
|
||||
|
||||
## Step 1 Setup namespace and RBAC
|
||||
## Step 1 | Setup namespace and RBAC
|
||||
|
||||
```shell
|
||||
oc new-project gitlab-runner
|
||||
|
|
@ -40,27 +40,28 @@ roleRef:
|
|||
EOF
|
||||
```
|
||||
|
||||
## Step 2 Create secrets
|
||||
## Step 2 | Create secrets
|
||||
|
||||
[!warning] REPLACE YOUR TOKEN!
|
||||
!!! note
|
||||
REPLACE YOUR TOKEN!
|
||||
|
||||
```shell
|
||||
# 2. Create secret (REPLACE TOKEN!)
|
||||
oc create secret generic gitlab-runner-secret \
|
||||
--from-literal=runner-registration-token=YOUR_REGISTRATION_TOKEN \
|
||||
-n gitlab-runner
|
||||
```
|
||||
|
||||
## 3. Apply SCCs
|
||||
## Step 3 | Apply SCCs
|
||||
|
||||
```shell
|
||||
oc adm policy add-scc-to-user anyuid -z gitlab-runner -n gitlab-runner
|
||||
oc adm policy add-scc-to-user privileged -z gitlab-runner -n gitlab-runner
|
||||
```
|
||||
|
||||
## 4. Deploy runner (REPLACE TOKEN IN YAML!)
|
||||
## Step 4 | Deploy runner
|
||||
|
||||
[!warning] REPLACE YOUR TOKEN!
|
||||
!!! note
|
||||
REPLACE YOUR TOKEN!
|
||||
|
||||
```shell
|
||||
oc apply -f - <<EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue