-
Notifications
You must be signed in to change notification settings - Fork 0
/
3-deploy-jaeger.sh
executable file
·118 lines (117 loc) · 2.12 KB
/
3-deploy-jaeger.sh
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
#
# This deploys jaeger-all-in-one inside the cluster.
echo "= Create Jaeger Namespace ="
kubectl create namespace jaeger
echo "= Deploy Jaeger components ="
kubectl -n jaeger apply -f - <<EOF
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: jaeger-operator
rules:
- apiGroups:
- io.jaegertracing
resources:
- "*"
verbs:
- "*"
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- "*"
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- "*"
- apiGroups:
- extensions
resources:
- ingresses
verbs:
- "*"
- apiGroups:
- batch
resources:
- jobs
verbs:
- "*"
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: default-account-jaeger-operator
subjects:
- kind: ServiceAccount
name: default
namespace: jaeger
roleRef:
kind: ClusterRole
name: jaeger-operator
apiGroup: rbac.authorization.k8s.io
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: jaegers.io.jaegertracing
spec:
group: io.jaegertracing
names:
kind: Jaeger
listKind: JaegerList
plural: jaegers
singular: jaeger
scope: Namespaced
version: v1alpha1
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jaeger-operator
spec:
replicas: 1
selector:
matchLabels:
name: jaeger-operator
template:
metadata:
labels:
name: jaeger-operator
spec:
containers:
- name: jaeger-operator
image: jaegertracing/jaeger-operator:1.8.0
ports:
- containerPort: 60000
name: metrics
args: ["start"]
imagePullPolicy: Always
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: OPERATOR_NAME
value: "jaeger-operator"
---
apiVersion: io.jaegertracing/v1alpha1
kind: Jaeger
metadata:
name: simplest
spec:
ingress:
enabled: true
EOF