Files
zeaslity 437acbeb63 add
2024-10-30 16:30:51 +08:00

153 lines
3.9 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#修改namespace,镜像地址修改configmap的信息
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: cmii-uav-cluster-agents
namespace: kube-system
labels:
app.kubernetes.io/app-version: 3.2.1
app.kubernetes.io/chart-version: 2.2.2
app.kubernetes.io/managed-by: Helm
cmii.app: cmii-uav-cluster-agents
cmii.type: agent
helm.sh/chart: agent-app-1.2.2
spec:
replicas: 1
selector:
matchLabels:
cmii.app: cmii-uav-cluster-agents
cmii.type: agent
template:
metadata:
creationTimestamp: null
labels:
cmii.app: cmii-uav-cluster-agents
cmii.type: agent
spec:
volumes:
- name: cluster-agent
configMap:
name: cluster-agent
items:
- key: config.yml
path: config.yml
defaultMode: 420
- name: docker
hostPath:
path: /usr/bin/docker
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: docker-so
hostPath:
path: /usr/lib64/libltdl.so.7
- name: download
hostPath:
path: /home/download
containers:
- name: cmii-uav-cluster-agents
image: '10.165.81.68:8033/cmii/cmii-uav-cluster-agents:3.2.3'
ports:
- name: agent-8080
containerPort: 8080
protocol: TCP
env:
- name: APPLICATION_NAME
value: cmii-uav-cluster-agents
resources:
limits:
cpu: '4'
memory: 4Gi
requests:
cpu: 500m
memory: 500Mi
volumeMounts:
- name: cluster-agent
mountPath: /build/config/config.yml
subPath: config.yml
- name: docker
mountPath: /usr/bin/docker
- name: docker-sock
mountPath: /var/run/docker.sock
- name: docker-so
mountPath: /usr/lib/x86_64-linux-gnu/libltdl.so.7
- name: download
mountPath: /build/download
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
imagePullSecrets:
- name: harborsecret
affinity: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
---
kind: Service
apiVersion: v1
metadata:
name: cmii-uav-cluster-agents
namespace: kube-system
labels:
app.kubernetes.io/app-version: 3.2.1
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/version: 2.2.2
cmii.app: cmii-uav-cluster-agents
cmii.type: agent
helm.sh/chart: backend-app-1.1.0
spec:
ports:
- name: agent-tcp
protocol: TCP
port: 8080
targetPort: 8080
selector:
cmii.app: cmii-uav-cluster-agents
cmii.type: agent
type: ClusterIP
sessionAffinity: None
---
apiVersion: v1
data:
config.yml: |
listen_port: "8080"
tenant_id: "gxyd-super-boge"
tenant_name: "gxyd"
tenant_key: "gxyd_youdian-haoqi"
log_path: ""
emqx_ip: "183.220.194.193"
emqx_port: 26686
emqx_username: "cmlc"
emqx_pwd: "odD8#Ve7.B"
emqx_topic_image: "agent_manage"
emqx_topic_status: "agent_status"
harbor_ip: "10.165.81.68"
harbor_port: "8033"
harbor_key: "admin"
harbor_pwd: "V2ryStr@ngPss"
minio_endpoint: ""
minio_key: ""
minio_pwd: ""
minio_bucket: ""
minio_usessl: ""
kind: ConfigMap
metadata:
name: cluster-agent
namespace: kube-system