-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathk8s-resources.yaml
70 lines (70 loc) · 1.61 KB
/
k8s-resources.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: instana-gitlab-ci-observer
name: instana-gitlab-ci-observer
---
apiVersion: v1
kind: Secret
metadata:
name: instana-gitlab-ci-observer-config
namespace: instana-gitlab-ci-observer
type: Opaque
stringData:
config.yaml: |
gitlab:
url: https://gitlab.example.com # CHANGEME
api-token: gitlab-pat # CHANGEME
awx:
url: http://awx.example.com # CHANGEME
user: admin # CHANGEME
password: adminPassword # CHANGEME
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: instana-gitlab-ci-observer
labels:
app: instana-gitlab-ci-observer
spec:
replicas: 1
selector:
matchLabels:
app: instana-gitlab-ci-observer
template:
metadata:
labels:
app: instana-gitlab-ci-observer
spec:
volumes:
- name: config
secret:
secretName: instana-gitlab-ci-observer-config
containers:
- name: instana-gitlab-ci-observer
image: quay.io/noesamaille0/instana-gitlab-ci-observer:latest
env:
- name: INSTANA_DISABLE_AUTO_INSTR
value: "true"
volumeMounts:
- mountPath: /opt/app-root/src/config.yaml
name: config
subPath: config.yaml
ports:
- containerPort: 8088
resources:
limits:
memory: 256Mi
cpu: 500m
---
apiVersion: v1
kind: Service
metadata:
name: instana-gitlab-ci-observer
spec:
selector:
app: instana-gitlab-ci-observer
ports:
- port: 8088
targetPort: 8088