This topic describes how to install Application Live View Server.

To deploy Application Live View Server, follow the steps below:

Deploy Application Live View Server

  1. Create a deployment yaml (app-live-view-server.yaml) as shown below:

    app-live-view-server.yaml

    apiVersion: apps/v1
    kind: Deployment
    metadata:
        labels:
          app: app-live-view-server
          name: app-live-view-server
          spec:
            replicas: 1
            selector:
              matchLabels:
                app: app-live-view-server
            strategy: {}
            template:
              metadata:
                labels:
                  app: app-live-view-server
              spec:
                containers:
                # Get the latest image of Application Live View server
                - image: registry.pivotal.io/app-live-view/application-live-view-server:0.1.0
                  name: app-live-view-server
                  ports:
                  - containerPort: 5112
    
  2. Deploy the Application Live View Server using kubectl CLI. Run:

    kubectl apply -f app-live-view-server.yaml
    
  3. Verify the deployment by running the below command:

    kubectl get pods
    

    application-live-view-server pod should be in running state


Deploy Services for Application Live View Server

The Application Live View Server has two services:

  • app-live-view-5112: Service is exposed on port 5112 either via Nodeport or LoadBalancer. The Application Live View UI can be accessed through this service

  • Create a service yaml (app-live-view-server-service.yaml) as shown below and replace the placeholder values as necessary:

    app-live-view-server-service.yaml (Service for Application Live View exposed on port 5112)

    apiVersion: v1
    kind: Service
    metadata:
      labels:
        app: app-live-view-server
        name: app-live-view-5112
        spec:
          # externalName specifies the DNS name for the App Live View service exposed on port 5112
          # if externalName is not specified, you can specify externalIPs: "<IP>" instead
          externalName: {{TO BE CHANGED}}
          selector:
            app: app-live-view-server
          type: {{TO BE CHANGED}}
          ports:
          - name: app-live-view-server-http
            port: 5112
            protocol: TCP
            targetPort: 5112
    

    Note: Replace ${TO BE CHANGED} placeholder with your application image

  • Deploy the service using kubectl CLI. Run:

    kubectl apply -f app-live-view-server-service.yaml
    
  • Verify the service by running the below command:

    kubectl get svc
    

    app-live-view-5112 service should be listed

  • app-live-view-7000: Service is exposed on port 7000. This service provides the RSocket connection between the Sidecar/Connector and the Application Live View Server

    app-live-view-7000.yaml (Service for Application Live View exposed on port 7000)

    apiVersion: v1
    kind: Service
    metadata:
      labels:
        app: app-live-view-server
        name: app-live-view-7000
        spec:
          selector:
            app: app-live-view-server
          ports:
          - name: app-live-view-server-rsocket
            port: 7000
            protocol: TCP
            targetPort: 7000
    
  • Deploy the service using kubectl CLI. Run:

    kubectl apply -f app-live-view-7000.yaml
    
  • Verify the service by running the below command:

    kubectl get svc
    

    app-live-view-7000 service should be listed

Access Application Live View UI

Run a quick check on <dns name from EXTERNAL-IP column in kubectl get svc output>:5112 from browser to see if the Application Live View UI is up and running
check-circle-line exclamation-circle-line close-line
Scroll to top icon