#修改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: '192.168.8.65: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: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: uavcloud.env operator: In values: - demo 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: "eurdeu-wdd-super" tenant_name: "eurdeu" tenant_key: "eurdeuwddccc" log_path: "" emqx_ip: "183.220.194.193" emqx_port: 26686 emqx_username: "cmlc" emqx_pwd: "odD8#Pl7.B" emqx_topic_image: "agent_manage" emqx_topic_status: "agent_status" harbor_ip: "192.168.8.65" 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