In this example, we will deploy an OAP server and UI to Kubernetes cluster with default settings specified by their Custom Resource Defines(CRD).
Follow Operator installation instrument to install the operator.
Clone this repo, then change current directory to samples.
Issue the below command to deploy an OAP server and UI.
kubectl apply -f default.yamlGet created custom resources as below:
$ kubectl get oapserver,ui
NAME INSTANCES RUNNING ADDRESS
oapserver.operator.skywalking.apache.org/default 1 1 default-oap.skywalking-swck-system
NAME INSTANCES RUNNING INTERNALADDRESS EXTERNALIPS PORTS
ui.operator.skywalking.apache.org/default 1 1 default-ui.skywalking-swck-system [80]In order to view the UI from your browser, you should get the external address from the ingress generated by the UI custom resource firstly.
$ kubectl get ingresses
NAME HOSTS ADDRESS PORTS AGE
default-ui demo.ui.skywalking <External_IP> 80 33hEdit your local /etc/hosts to append the following host-ip mapping.
demo.ui.skywalking <External_IP>
Finally, navigate your browser to demo.ui.skywalking to access UI service.
Notice, please install an ingress controller to your Kubernetes environment.