CCP2 CNA Cloud Patterns

Page content

Cloud Patterns

  • Service Registry
  • Circuit Breaker
  • Load Balancer
  • API Gateway
  • Endpoint Monitoring (Health, Metering,…)

CNA - Service Registry

Endpoint Monitoring

Service orientation at scale means using/running many services
These Services need to be monitored.
a Process could stil be a live but the API is not responding

Commands

Command description
k3d cluster create –config ./lab-setup/k3d-ccp2-config.yaml create cluster

Health monitor

add this to the deplyoment yaml files: in spec.template.spec.containers

        livenessProbe:
          initialDelaySeconds: 20
          httpGet:
            path: /actuator/health/liveness
            port: 8080
        readinessProbe:
          httpGet:
            path: /actuator/health/readiness
            port: 8080

env Variables for URL

microservice-shipping.yaml and microservice-invoicing.yaml

**spec.template.spec.containers

- name: ORDER_URL
            value: "http://order.default.svc.cluster.local/feed"