Spring Boot Admin
This module creates an instance of spring-boot-admin, preconfigured to discover endpoints via Kubernetes.
The following snippets lists all available configuration options alongside their default values:
(import 'cloudflight-libsonnet/applications/spring-boot-admin.libsonnet')
+ {
  _config+: {
        springBootAdmin: {
          name: 'spring-boot-admin',
          image: 'ghcr.io/cloudflightio/spring-boot-admin-docker:2.7.3',
          host: error '$._config.springBootAdmin.host must be defined',
          serviceAccountName: 'default',
          config: {
            spring: {
              cloud: {
                kubernetes: {
                  discovery: {
                    enabled: true,
                    'service-labels': {
                      '[app.openshift.io/runtime]': 'spring-boot',
                    },
                    catalogServiceWatchDelay: 300,
                    'primary-port-name': 'actuator',
                  },
                },
              },
            },
          },
          resources:: {
            limits: {
              cpu: '500m',
              memory: '512Mi',
            },
            requests: {
              cpu: '10m',
              memory: '512Mi',
            },
          },
        },
  }
}
Integration and Service Discovery
When using our java helpers, spring-boot-admin will automatically discover provided services and their respective actuator endpoints.
To customize the discovery, modify $._config.springBootAdmin.config.spring.cloud.kubernetes.discovery to match your labels.