tpcc and host-agent ansible installer add
This commit is contained in:
23
roles/jaeger/files/jaeger-client/.helmignore
Normal file
23
roles/jaeger/files/jaeger-client/.helmignore
Normal file
@@ -0,0 +1,23 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*.orig
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
6
roles/jaeger/files/jaeger-client/Chart.yaml
Normal file
6
roles/jaeger/files/jaeger-client/Chart.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: exem-jaeger
|
||||
description: A Helm chart for Kubernetes
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.0"
|
||||
2
roles/jaeger/files/jaeger-client/install.sh
Normal file
2
roles/jaeger/files/jaeger-client/install.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
//helm uninstall cmoa-jaeger-client -n imxc-agent
|
||||
helm install cmoa-jaeger-client . -n imxc-agent
|
||||
81
roles/jaeger/files/jaeger-client/templates/Trace-Agent.yaml
Normal file
81
roles/jaeger/files/jaeger-client/templates/Trace-Agent.yaml
Normal file
@@ -0,0 +1,81 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: List
|
||||
items:
|
||||
- apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cloudmoa-trace-agent
|
||||
#namespace: {{ .Values.global.AGENT_NAMESPACE }}
|
||||
labels:
|
||||
app: cloudmoa-trace-agent
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: cloudmoa-trace-agent
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: cloudmoa-trace-agent
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
containers:
|
||||
- image: {{ .Values.global.IMXC_IN_REGISTRY }}/trace-agent:{{ .Values.global.TRACE_AGENT_VERSION }}
|
||||
name: cloudmoa-trace-agent
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 50Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 100Mi
|
||||
ports:
|
||||
- containerPort: 5775
|
||||
protocol: UDP
|
||||
- containerPort: 6831
|
||||
protocol: UDP
|
||||
- containerPort: 6832
|
||||
protocol: UDP
|
||||
- containerPort: 5778
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: LOG_LEVEL
|
||||
value: "INFO"
|
||||
- name: CLUSTER_ID
|
||||
value: {{ .Values.global.CLUSTER_ID }}
|
||||
- name: DATAGATE
|
||||
value: {{ .Values.global.DATAGATE }}
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: cloudmoa-trace-agent
|
||||
#namespace: {{ .Values.global.AGENT_NAMESPACE }}
|
||||
labels:
|
||||
app: cloudmoa-trace-agent
|
||||
spec:
|
||||
ports:
|
||||
- name: agent-zipkin-thrift
|
||||
port: 5775
|
||||
protocol: UDP
|
||||
targetPort: 5775
|
||||
- name: agent-compact
|
||||
port: 6831
|
||||
protocol: UDP
|
||||
targetPort: 6831
|
||||
- name: agent-binary
|
||||
port: 6832
|
||||
protocol: UDP
|
||||
targetPort: 6832
|
||||
- name: agent-configs
|
||||
port: 5778
|
||||
protocol: TCP
|
||||
targetPort: 5778
|
||||
selector:
|
||||
app: cloudmoa-trace-agent
|
||||
type: ClusterIP
|
||||
|
||||
62
roles/jaeger/files/jaeger-client/templates/_helpers.tpl
Normal file
62
roles/jaeger/files/jaeger-client/templates/_helpers.tpl
Normal file
@@ -0,0 +1,62 @@
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "exem-jaeger.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "exem-jaeger.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains $name .Release.Name }}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "exem-jaeger.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "exem-jaeger.labels" -}}
|
||||
helm.sh/chart: {{ include "exem-jaeger.chart" . }}
|
||||
{{ include "exem-jaeger.selectorLabels" . }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "exem-jaeger.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "exem-jaeger.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "exem-jaeger.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "exem-jaeger.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
10
roles/jaeger/files/jaeger-client/values.yaml
Normal file
10
roles/jaeger/files/jaeger-client/values.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
global:
|
||||
# cluster variables
|
||||
CLUSTER_ID: bE06QBaN4XAbpf3z9g1CjF
|
||||
IMXC_IN_REGISTRY: 10.10.31.243:5000/cmoa3
|
||||
DATAGATE: 10.10.34.142:30051
|
||||
#DATAGATE_IP: 10.10.34.142
|
||||
#DATAGATE_PORT: 30051
|
||||
|
||||
TRACE_AGENT_VERSION: rel3.4.6
|
||||
|
||||
Reference in New Issue
Block a user