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.tanzu.vmware.com/app-live-view/application-live-view-server:0.2.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 80 via 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

    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: 80
            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

  1. If the service type of application-live-view-5112 is LoadBalancer, you can access the Application Live View UI using the listed EXTERNAL-IP address for the service application-live-view-5112

    Run a quick check on from browser to see if the Application Live View UI is up and running

  2. If your cluster doesn't support LoadBalancer and you installed using NodePort, then you can use port-forwarding with kubectl. To port-forward the UI server, run the following command in a separate terminal:

    kubectl -n app-live-view port-forward service/application-live-view-5112 5112:80
    

    Then you can access the server at http://localhost:5112

  3. If the service type of application-live-view-5112 is ClusterIP, you can access the Application Live View UI using an ingress controller.

check-circle-line exclamation-circle-line close-line
Scroll to top icon