CourseInsights / kubernetes / service.yaml
service.yaml
Raw
apiVersion: v1
kind: Service
metadata:
  name: my-api-service
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-healthcheck-path: "/datasets"
spec:
  type: LoadBalancer
  selector:
    app: my-api
  ports:
    - protocol: TCP
      port: 80
      targetPort: 4321