Configurations in the Flogo App’s YAML File

To register an app with the Flogo Enterprise Monitoring app, provide the following configuration details in the app's YAML file.

Sample YAML File

Application

apiVersion: v1
kind: Service
metadata:
  name: flogoapp
  labels:
    app: flogoapp
spec:
  type: LoadBalancer
  ports:
    - port: 9999
      protocol: TCP
      name: appport
      targetPort: 9999
  selector:
    app: flogoapp
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: flogoapp
spec:
  selector:
    matchLabels:
      app: flogoapp
  replicas: 2
  template:
    metadata:
      labels:
        app: flogoapp
        appType: flogo
      annotations:
        app.tibco.com/metrics: 'true'
        app.tibco.com/metrics-port: '7777'
    spec:
      containers:
        - name: flogoapp
          image: flogoapp:v1
          imagePullPolicy: Never
          ports:
            - containerPort: 9999
            - containerPort: 7777
          env:
            - name: "FLOGO_HTTP_SERVICE_PORT"
              value: "7777"