hiphop-deploy+svc.yaml 973 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: apps/v1
kind: Deployment
metadata:
  name: hiphop-deployment-{{ TIER }}
  annotations:
    sidecar.jaegertracing.io/inject: "true"
spec:
  replicas: {{ TIER }}
  selector:
    matchLabels:
      app: hiphop
      tier: {{ TIER }}
  template:
    metadata:
      labels:
        app: hiphop
        tier: {{ TIER }}
    spec:
      imagePullSecrets:
      - name: gitlab-registry-credentials
      containers:
      - name: hiphop
        image: git.mylab.th-luebeck.de:4181/cloud-native/lab-tracing/hiphop:latest
        imagePullPolicy: Always
        resources:
          limits:
            cpu: "50m"
        ports:
        - containerPort: 80
        env:
        - name: HIPHOP
          value: "hiphop"
        - name: TIER
          value: {{ TIER }}
---
apiVersion: v1
kind: Service
metadata:
  name: hiphop-service-{{ TIER }}
spec:
  selector:
    app: hiphop
    tier: {{ TIER }}
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80