deployment.yml 610 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
apiVersion: v1
kind: Service
metadata:
  name: event-detection
spec:
  type: LoadBalancer
  selector:
      app: event-detection
  ports:
    - name: http
      port: 80
      targetPort: 5000
      nodePort: 30204
      protocol: TCP
---
16 17 18 19 20
apiVersion: apps/v1
kind: Deployment
metadata:
  name: event-detection
spec:
21
  replicas: 1
22 23 24 25 26 27 28 29 30 31
  selector:
    matchLabels:
      app: event-detection
  template:
    metadata:
      labels:
        app: event-detection
    spec:
      containers:
      - name: event-detection
32
        image: alexx882/event-detection-microservice
33 34
        ports:
        - containerPort: 5000