-
To set up a local development environment for OpenShift Console, first clone the console repo and
cdinto that directory. -
Login to an OpenShift cluster with
oc loginand then run the following steps:
$ source ./contrib/oc-environment.sh
$ ./build.sh
$ ./bin/bridge
- For allowing our local UI development environment to connect to the gitops backend, we need to expose our backend using a route. Create a cluster route file
cluster-route.yamland add the following route to it:
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: cluster
namespace: openshift-gitops
spec:
to:
kind: Service
name: cluster
port:
targetPort: 8080
tls:
termination: reencrypt
insecureEdgeTerminationPolicy: Allow