mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-01 18:51:53 +08:00
- add the canonical AGPL header to the six agentic application yml files and the two python scripts that lacked one - add the header to all 79 kustomize, helm, and grafana yaml files, including the k8s driver template which regenerates the 36 driver manifests - verified: the k8s yaml files parse (multi-document aware), the python scripts compile, and the regenerated drivers differ only by the header
85 lines
2.4 KiB
YAML
85 lines
2.4 KiB
YAML
#
|
|
# Copyright 2016-present the IoT DC3 original author or authors.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dc3-manager
|
|
namespace: dc3
|
|
labels:
|
|
app.kubernetes.io/name: dc3-manager
|
|
app.kubernetes.io/part-of: iot-dc3
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: dc3-manager
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 0
|
|
maxSurge: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dc3-manager
|
|
spec:
|
|
terminationGracePeriodSeconds: 60
|
|
containers:
|
|
- name: dc3-manager
|
|
image: pnoker/dc3-center-manager:2026.6
|
|
imagePullPolicy: IfNotPresent
|
|
envFrom:
|
|
- configMapRef:
|
|
name: dc3-config
|
|
- secretRef:
|
|
name: dc3-secrets
|
|
ports:
|
|
- name: http
|
|
containerPort: 8400
|
|
- name: grpc
|
|
containerPort: 9400
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1024Mi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /manager/actuator/health/readiness
|
|
port: http
|
|
initialDelaySeconds: 40
|
|
periodSeconds: 15
|
|
timeoutSeconds: 5
|
|
failureThreshold: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /manager/actuator/health/readiness
|
|
port: http
|
|
initialDelaySeconds: 70
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
failureThreshold: 6
|
|
volumeMounts:
|
|
- name: logs
|
|
mountPath: /dc3-center/dc3-center-manager/dc3/logs
|
|
volumes:
|
|
- name: logs
|
|
emptyDir: { }
|