Creating service

Create a service.

Procedure

  1. Go to Manage project : mas-<instanceid>-manage
  2. Create service <instanceid>-<workspaceid>-<bundlename>-monitoringagent YAML. Replace instanceid, workspaceid, and bundlename 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