Files
robot-shop/OpenShift/README.md

49 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2019-03-05 15:49:11 +00:00
# Instana Agent Installation
See the official [documentation](https://docs.instana.io/quick_start/agent_setup/container/openshift/) for how to install the Instana agent on an OpenShift environment.
# Robot Shop Deployment
2021-06-22 09:31:06 +02:00
## OCP 3.x
2020-05-05 12:22:25 +01:00
For OpenShift run the `setup.sh` script to create the project and set the extra permissions.
2019-03-05 15:49:11 +00:00
2020-05-05 12:22:25 +01:00
Use the Helm chart for Kubernetes to install Stan's Robot Shop. To install on Minishift.
2019-03-05 15:49:11 +00:00
2020-05-05 12:22:25 +01:00
### Helm 3
2019-03-05 15:49:11 +00:00
2020-05-05 12:22:25 +01:00
```shell
$ cd K8s
$ oc login -u developer
$ oc project robot-shop
$ helm install robot-shop --set openshift=true --set nodeport=true helm
```
To connect to the shop.
2019-03-05 15:49:11 +00:00
2020-05-05 12:22:25 +01:00
```shell
$ minishift ip
192.168.99.106
$ oc get svc web
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
web NodePort 172.30.180.253 <none> 8080:31147/TCP 4m
2019-03-05 15:49:11 +00:00
```
2020-05-05 12:22:25 +01:00
Use the IP and the node port to form the URL `http://192.168.99.106:31147/`
2021-06-22 09:31:06 +02:00
## OCP 4.x
For Openshift cluster in version 4.x follow these steps:
```
export KUBECONFIG=/path/to/oc/cluster/dir/auth/kubeconfig
oc adm new-project robot-shop
oc adm policy add-scc-to-user anyuid -z default -n robot-shop
2021-06-22 10:51:45 +02:00
oc adm policy add-scc-to-user privileged -z default -n robot-shop
2021-06-22 09:31:06 +02:00
cd robot-shop/K8s
helm install robot-shop --set openshift=true -n robot-shop helm
```
2020-05-05 12:22:25 +01:00
2019-03-05 15:49:11 +00:00