hiphop-deploy+svc.yaml 1004 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
2
3
4
apiVersion: apps/v1
kind: Deployment
metadata:
  name: hiphop-deployment-{{ TIER }}
Nane Kratzke's avatar
Nane Kratzke committed
5
6
  labels:
    app: hiphop-{{ TIER }}
Nane Kratzke's avatar
Nane Kratzke committed
7
  annotations:
Nane Kratzke's avatar
update    
Nane Kratzke committed
8
    "sidecar.jaegertracing.io/inject": "tracing"
Nane Kratzke's avatar
Nane Kratzke committed
9
spec:
Nane Kratzke's avatar
Nane Kratzke committed
10
  replicas: 1
Nane Kratzke's avatar
Nane Kratzke committed
11
12
  selector:
    matchLabels:
Nane Kratzke's avatar
Nane Kratzke committed
13
      app: hiphop-{{ TIER }}
Nane Kratzke's avatar
Nane Kratzke committed
14
15
16
  template:
    metadata:
      labels:
Nane Kratzke's avatar
Nane Kratzke committed
17
        app: hiphop-{{ TIER }}
Nane Kratzke's avatar
Nane Kratzke committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    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
Nane Kratzke's avatar
Nane Kratzke committed
32
          value: "hiphop-svc"
Nane Kratzke's avatar
Nane Kratzke committed
33
        - name: TIER
Nane Kratzke's avatar
Nane Kratzke committed
34
          value: "{{ TIER }}"
Nane Kratzke's avatar
Nane Kratzke committed
35
36
37
38
---
apiVersion: v1
kind: Service
metadata:
Nane Kratzke's avatar
Nane Kratzke committed
39
  name: hiphop-svc-{{ TIER }}
Nane Kratzke's avatar
Nane Kratzke committed
40
41
  labels:
    app: hiphop-{{ TIER }}
Nane Kratzke's avatar
Nane Kratzke committed
42
43
spec:
  selector:
Nane Kratzke's avatar
Nane Kratzke committed
44
    app: hiphop-{{ TIER }}
Nane Kratzke's avatar
Nane Kratzke committed
45
46
47
48
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80