Progress on exercise 7.
This commit is contained in:
@ -25,8 +25,15 @@ Since 2021 OpenShift has included a fully supported [OpenShift GitOps](https://w
|
|||||||
|
|
||||||
This operator has already been installed on your cluster so let's take it for a spin now! 🚀
|
This operator has already been installed on your cluster so let's take it for a spin now! 🚀
|
||||||
|
|
||||||
## 7.1 - Log in to openshift gitops web interface
|
## 7.1 - Deploy openshift gitops
|
||||||
|
|
||||||
|
To get started with OpenShift GitOps we will need an instance of ArgoCD deployed.
|
||||||
|
|
||||||
|
Click the **+** button in the top right corner menu bar of the OpenShift web console. This is a fast way to quickly import snippets of YAML for testing or exploration purposes.
|
||||||
|
|
||||||
|
Paste the below snippet of YAML into the editor and replace the instance of `userX` with your assigned user.
|
||||||
|
|
||||||
|
Click **Create**. In a minute or so you should see the ArgoCD instance running successfully in your project.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apiVersion: argoproj.io/v1beta1
|
apiVersion: argoproj.io/v1beta1
|
||||||
@ -39,9 +46,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
defaultClusterScopedRoleDisabled: true
|
defaultClusterScopedRoleDisabled: true
|
||||||
rbac:
|
rbac:
|
||||||
defaultPolicy: ""
|
defaultPolicy: role:admin
|
||||||
policy: |
|
|
||||||
g, system:cluster-admins, role:admin
|
|
||||||
scopes: '[groups]'
|
scopes: '[groups]'
|
||||||
server:
|
server:
|
||||||
route:
|
route:
|
||||||
@ -53,3 +58,21 @@ spec:
|
|||||||
openShiftOAuth: true
|
openShiftOAuth: true
|
||||||
provider: dex
|
provider: dex
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 7.2 Login to argocd
|
||||||
|
|
||||||
|
With ArgoCD running let's open the route in a new tab in our browser and click **Log in with OpenShift**. You can retrieve the ~Route~ by running the following command in your web terminal:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
oc get route argocd-server
|
||||||
|
```
|
||||||
|
|
||||||
|
<Zoom>
|
||||||
|
| |
|
||||||
|
|:-------------------------------------------------------------------:|
|
||||||
|
| *ArgoCD login* |
|
||||||
|
</Zoom>
|
||||||
|
|
||||||
|
## 7.3 Deploy an application
|
||||||
|
|
||||||
|
Now that you're logged into ArgoCD have a go at deploying
|
||||||
|
|||||||
BIN
public/static/images/argocd-login.png
Normal file
BIN
public/static/images/argocd-login.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 853 KiB |
Reference in New Issue
Block a user