Ubuntu 지원 및 process-agent 추가

This commit is contained in:
ByeonJungHun
2023-07-17 11:54:36 +09:00
parent 07fc4993cf
commit 4a6547f677
39 changed files with 158 additions and 512 deletions

View File

@@ -1,23 +0,0 @@
# 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/

View File

@@ -1,6 +0,0 @@
apiVersion: v2
name: exem-jaeger
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.0"

View File

@@ -1,2 +0,0 @@
//helm uninstall cmoa-jaeger-client -n imxc-agent
helm install cmoa-jaeger-client . -n imxc-agent

View File

@@ -1,81 +0,0 @@
---
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

View File

@@ -1,62 +0,0 @@
{{/*
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 }}

View File

@@ -1,10 +0,0 @@
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