Creating service
Create a service.
Procedure
- Go to Manage project :
mas-<instanceid>-manage
- Create service
<instanceid>-<workspaceid>-<bundlename>-monitoringagent
YAML. Replaceinstanceid
,workspaceid
, andbundlename
in the following example:apiVersion: v1 kind: Service metadata: labels: app: <instanceid>-<workspaceid>-<bundlename> name: <instanceid>-<workspaceid>-<bundlename>-monitoragent namespace: mas-<instanceid>-manage spec: ports: - name: 9080-tcp protocol: TCP port: 9080 targetPort: 9080 - name: https protocol: TCP port: 9444 targetPort: 9444 selector: app: <instanceid>-<workspaceid>-<bundlename> type: ClusterIP