k3s或k8s部署EdgeX2.0的yaml文件(包含modbus设备服务部署)
1. arm64架构文件k3s-redis-no-secty-with-ui-arm64.yaml###################################################################################Copyright © 2020-2021 VMware, Inc. All Rights Reserved.#Copyright ©
·
1. arm64架构文件k3s-redis-no-secty-with-ui-arm64.yaml
# #################################################################################
# Copyright © 2020-2021 VMware, Inc. All Rights Reserved.
# Copyright © 2020-2021 IOTech Systems. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
#
# @author: Huaqiao Zhang, <huaqiaoz@vmware.com>
# @author: Jim White, <jim@iotechsys.com>
# #################################################################################
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ConfigMap
metadata:
name: common-variables
data:
EDGEX_SECURITY_SECRET_STORE: "false"
MESSAGEQUEUE_HOST: "edgex-redis"
CLIENTS_CORE_COMMAND_HOST: "edgex-core-command"
CLIENTS_CORE_DATA_HOST: "edgex-core-data"
CLIENTS_CORE_METADATA_HOST: "edgex-core-metadata"
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: "edgex-support-notifications"
CLIENTS_SUPPORT_SCHEDULER_HOST: "edgex-support-scheduler"
DATABASES_PRIMARY_HOST: "edgex-redis"
REGISTRY_HOST: "edgex-core-consul"
SREVICE_SERVERBINDADDR: "0.0.0.0"
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-consul
spec:
type: NodePort
selector:
app: edgex-core-consul
ports:
- name: tcp-8500
port: 8500
protocol: TCP
targetPort: 8500
nodePort: 30850
- apiVersion: v1
kind: Service
metadata:
name: edgex-redis
spec:
type: NodePort
selector:
app: edgex-redis
ports:
- name: http
protocol: TCP
port: 6379
targetPort: 6379
nodePort: 30079
- apiVersion: v1
kind: Service
metadata:
name: edgex-support-notifications
spec:
type: NodePort
selector:
app: edgex-support-notifications
ports:
- name: http
port: 59860
protocol: TCP
targetPort: 59860
nodePort: 30060
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-metadata
spec:
type: NodePort
selector:
app: edgex-core-metadata
ports:
- name: http
port: 59881
protocol: TCP
targetPort: 59881
nodePort: 30081
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-data
spec:
type: NodePort
selector:
app: edgex-core-data
ports:
- name: tcp-5563
port: 5563
protocol: TCP
targetPort: 5563
- name: tcp-59880
port: 59880
protocol: TCP
targetPort: 59880
nodePort: 30080
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-command
spec:
type: NodePort
selector:
app: edgex-core-command
ports:
- name: http
port: 59882
protocol: TCP
targetPort: 59882
nodePort: 30082
- apiVersion: v1
kind: Service
metadata:
name: edgex-support-scheduler
spec:
type: NodePort
selector:
app: edgex-support-scheduler
ports:
- name: http
port: 59861
protocol: TCP
targetPort: 59861
nodePort: 30061
- apiVersion: v1
kind: Service
metadata:
name: edgex-app-rules-engine
spec:
type: NodePort
selector:
app: edgex-app-rules-engine
ports:
- name: http
port: 59701
protocol: TCP
targetPort: 59701
nodePort: 30701
- apiVersion: v1
kind: Service
metadata:
name: edgex-kuiper
spec:
type: NodePort
selector:
app: edgex-kuiper
ports:
- name: http
port: 59720
protocol: TCP
targetPort: 59720
nodePort: 30720
- apiVersion: v1
kind: Service
metadata:
name: edgex-device-virtual
spec:
type: NodePort
selector:
app: edgex-device-virtual
ports:
- name: http
port: 59900
protocol: TCP
targetPort: 59900
nodePort: 30090
- apiVersion: v1
kind: Service
metadata:
name: edgex-device-rest
spec:
type: NodePort
selector:
app: edgex-device-rest
ports:
- name: http
port: 59986
protocol: TCP
targetPort: 59986
nodePort: 30086
- apiVersion: v1
kind: Service
metadata:
name: edgex-ui-go
spec:
type: NodePort
selector:
app: edgex-ui-go
ports:
- name: http
port: 4000
protocol: TCP
targetPort: 4000
nodePort: 30040
- apiVersion: v1
kind: Service
metadata:
name: edgex-sys-mgmt-agent
spec:
type: NodePort
selector:
app: edgex-sys-mgmt-agent
ports:
- name: http
port: 58890
protocol: TCP
targetPort: 58890
nodePort: 30890
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-consul
spec:
selector:
matchLabels:
app: edgex-core-consul
template:
metadata:
labels:
app: edgex-core-consul
spec:
hostname: edgex-core-consul
volumes:
- name: consul-config
hostPath:
path: /consul/config
type: DirectoryOrCreate
- name: consul-data
hostPath:
path: /consul/data
type: DirectoryOrCreate
containers:
- name: edgex-core-consul
image: consul:1.9.5
imagePullPolicy: IfNotPresent
ports:
- name: tcp-8500
protocol: TCP
containerPort: 8500
volumeMounts:
- name: consul-config
mountPath: /consul/config
- name: consul-data
mountPath: /consul/data
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-redis
spec:
selector:
matchLabels:
app: edgex-redis
template:
metadata:
labels:
app: edgex-redis
spec:
hostname: edgex-redis
volumes:
- name: db-data
hostPath:
path: /data
type: DirectoryOrCreate
containers:
- name: edgex-redis
image: redis:6.2.4-alpine
imagePullPolicy: IfNotPresent
ports:
- containerPort: 6379
envFrom:
- configMapRef:
name: common-variables
volumeMounts:
- name: db-data
mountPath: /data
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-support-notifications
spec:
selector:
matchLabels:
app: edgex-support-notifications
template:
metadata:
labels:
app: edgex-support-notifications
spec:
hostname: edgex-support-notifications
containers:
- name: edgex-support-notifications
image: edgexfoundry/support-notifications-arm64:2.0.0
imagePullPolicy: IfNotPresent
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-support-notifications"
ports:
- name: http
protocol: TCP
containerPort: 59860
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-metadata
spec:
selector:
matchLabels:
app: edgex-core-metadata
template:
metadata:
labels:
app: edgex-core-metadata
spec:
hostname: edgex-core-metadata
containers:
- name: edgex-core-metadata
image: edgexfoundry/core-metadata-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59881
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-core-metadata"
- name: NOTIFICATIONS_SENDER
value: "edgex-core-metadata"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-data
spec:
selector:
matchLabels:
app: edgex-core-data
template:
metadata:
labels:
app: edgex-core-data
spec:
hostname: edgex-core-data
containers:
- name: edgex-core-data
image: edgexfoundry/core-data-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: tcp-59880
protocol: TCP
containerPort: 59880
- name: tcp-5563
protocol: TCP
containerPort: 5563
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-core-data"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-command
spec:
selector:
matchLabels:
app: edgex-core-command
template:
metadata:
labels:
app: edgex-core-command
spec:
hostname: edgex-core-command
containers:
- name: edgex-core-command
image: edgexfoundry/core-command-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59882
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-core-command"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-support-scheduler
spec:
selector:
matchLabels:
app: edgex-support-scheduler
template:
metadata:
labels:
app: edgex-support-scheduler
spec:
hostname: edgex-support-scheduler
containers:
- name: edgex-support-scheduler
image: edgexfoundry/support-scheduler-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59861
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-support-scheduler"
- name: INTERVALACTIONS_SCRUBPUSHED_HOST
value: "edgex-core-data"
- name: INTERVALACTIONS_SCRUBAGED_HOST
value: "edgex-core-data"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-app-rules-engine
spec:
selector:
matchLabels:
app: edgex-app-rules-engine
template:
metadata:
labels:
app: edgex-app-rules-engine
spec:
hostname: edgex-app-rules-engine
containers:
- name: edgex-app-rules-engine
image: edgexfoundry/app-service-configurable-arm64:2.0.1
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59701
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-app-rules-engine"
- name: EDGEX_PROFILE
value: "rules-engine"
- name: TRIGGER_EDGEXMESSAGEBUS_PUBLISHHOST_HOST
value: "edgex-redis"
- name: TRIGGER_EDGEXMESSAGEBUS_SUBSCRIBEHOST_HOST
value: "edgex-redis"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-kuiper
spec:
selector:
matchLabels:
app: edgex-kuiper
template:
metadata:
labels:
app: edgex-kuiper
spec:
hostname: edgex-kuiper
volumes:
- name: kuiper-data
hostPath:
path: /kuiper/data
type: DirectoryOrCreate
containers:
- name: edgex-kuiper
image: lfedge/ekuiper:1.3.0-alpine
imagePullPolicy: IfNotPresent
ports:
- name: tcp-59720
protocol: TCP
containerPort: 59720
env:
- name: KUIPER__BASIC__CONSOLELOG
value: "true"
- name: KUIPER__BASIC__RESTPORT
value: "59720"
- name: EDGEX__DEFAULT__TYPE
value: "redis"
- name: EDGEX__DEFAULT__SERVER
value: "edgex-redis"
- name: EDGEX__DEFAULT__TOPIC
value: "rules-events"
- name: EDGEX__DEFAULT__PROTOCOL
value: "redis"
- name: EDGEX__DEFAULT__PORT
value: "6379"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-device-virtual
spec:
selector:
matchLabels:
app: edgex-device-virtual
template:
metadata:
labels:
app: edgex-device-virtual
spec:
hostname: edgex-device-virtual
containers:
- name: edgex-device-virtual
image: edgexfoundry/device-virtual-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59900
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-device-virtual"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-device-rest
spec:
selector:
matchLabels:
app: edgex-device-rest
template:
metadata:
labels:
app: edgex-device-rest
spec:
hostname: edgex-device-rest
containers:
- name: edgex-device-rest
image: edgexfoundry/device-rest-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59986
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-device-rest"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-ui-go
spec:
selector:
matchLabels:
app: edgex-ui-go
template:
metadata:
labels:
app: edgex-ui-go
spec:
hostname: edgex-ui-go
containers:
- name: edgex-ui-go
image: edgexfoundry/edgex-ui-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 4000
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-sys-mgmt-agent
spec:
selector:
matchLabels:
app: edgex-sys-mgmt-agent
template:
metadata:
labels:
app: edgex-sys-mgmt-agent
spec:
hostname: edgex-sys-mgmt-agent
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker/sock
type: DirectoryOrCreate
containers:
- name: edgex-sys-mgmt-agent
image: edgexfoundry/sys-mgmt-agent-arm64:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 58890
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-sys-mgmt-agent"
- name: EXECUTORPATH
value: "/sys-mgmt-executor"
- name: METRICSMECHANISM
value: "executor"
volumeMounts:
- name: docker-sock
mountPath: /var/run/docker.sock
2. amd64架构文件k3s-redis-no-secty-with-ui.yaml
包含modbus设备服务
# #################################################################################
# Copyright © 2020-2021 VMware, Inc. All Rights Reserved.
# Copyright © 2020-2021 IOTech Systems. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
#
# @author: Huaqiao Zhang, <huaqiaoz@vmware.com>
# @author: Jim White, <jim@iotechsys.com>
# #################################################################################
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ConfigMap
metadata:
name: common-variables
data:
EDGEX_SECURITY_SECRET_STORE: "false"
MESSAGEQUEUE_HOST: "edgex-redis"
CLIENTS_CORE_COMMAND_HOST: "edgex-core-command"
CLIENTS_CORE_DATA_HOST: "edgex-core-data"
CLIENTS_CORE_METADATA_HOST: "edgex-core-metadata"
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: "edgex-support-notifications"
CLIENTS_SUPPORT_SCHEDULER_HOST: "edgex-support-scheduler"
DATABASES_PRIMARY_HOST: "edgex-redis"
REGISTRY_HOST: "edgex-core-consul"
SREVICE_SERVERBINDADDR: "0.0.0.0"
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-consul
spec:
type: NodePort
selector:
app: edgex-core-consul
ports:
- name: tcp-8500
port: 8500
protocol: TCP
targetPort: 8500
nodePort: 30850
- apiVersion: v1
kind: Service
metadata:
name: edgex-redis
spec:
selector:
app: edgex-redis
ports:
- name: http
protocol: TCP
port: 6379
targetPort: 6379
- apiVersion: v1
kind: Service
metadata:
name: edgex-device-modbus
spec:
type: NodePort
selector:
app: edgex-device-modbus
ports:
- name: http
port: 59901
protocol: TCP
targetPort: 59901
nodePort: 30901
- apiVersion: v1
kind: Service
metadata:
name: edgex-support-notifications
spec:
type: NodePort
selector:
app: edgex-support-notifications
ports:
- name: http
port: 59860
protocol: TCP
targetPort: 59860
nodePort: 30060
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-metadata
spec:
type: NodePort
selector:
app: edgex-core-metadata
ports:
- name: http
port: 59881
protocol: TCP
targetPort: 59881
nodePort: 30081
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-data
spec:
type: NodePort
selector:
app: edgex-core-data
ports:
- name: tcp-5563
port: 5563
protocol: TCP
targetPort: 5563
- name: tcp-59880
port: 59880
protocol: TCP
targetPort: 59880
nodePort: 30080
- apiVersion: v1
kind: Service
metadata:
name: edgex-core-command
spec:
type: NodePort
selector:
app: edgex-core-command
ports:
- name: http
port: 59882
protocol: TCP
targetPort: 59882
nodePort: 30082
- apiVersion: v1
kind: Service
metadata:
name: edgex-support-scheduler
spec:
type: NodePort
selector:
app: edgex-support-scheduler
ports:
- name: http
port: 59861
protocol: TCP
targetPort: 59861
nodePort: 30061
- apiVersion: v1
kind: Service
metadata:
name: edgex-app-rules-engine
spec:
type: NodePort
selector:
app: edgex-app-rules-engine
ports:
- name: http
port: 59701
protocol: TCP
targetPort: 59701
nodePort: 30701
- apiVersion: v1
kind: Service
metadata:
name: edgex-kuiper
spec:
type: NodePort
selector:
app: edgex-kuiper
ports:
- name: http
port: 59720
protocol: TCP
targetPort: 59720
nodePort: 30720
- apiVersion: v1
kind: Service
metadata:
name: edgex-device-virtual
spec:
type: NodePort
selector:
app: edgex-device-virtual
ports:
- name: http
port: 59900
protocol: TCP
targetPort: 59900
nodePort: 30090
- apiVersion: v1
kind: Service
metadata:
name: edgex-device-rest
spec:
type: NodePort
selector:
app: edgex-device-rest
ports:
- name: http
port: 59986
protocol: TCP
targetPort: 59986
nodePort: 30086
- apiVersion: v1
kind: Service
metadata:
name: edgex-ui-go
spec:
type: NodePort
selector:
app: edgex-ui-go
ports:
- name: http
port: 4000
protocol: TCP
targetPort: 4000
nodePort: 30040
- apiVersion: v1
kind: Service
metadata:
name: edgex-sys-mgmt-agent
spec:
type: NodePort
selector:
app: edgex-sys-mgmt-agent
ports:
- name: http
port: 58890
protocol: TCP
targetPort: 58890
nodePort: 30890
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-consul
spec:
selector:
matchLabels:
app: edgex-core-consul
template:
metadata:
labels:
app: edgex-core-consul
spec:
hostname: edgex-core-consul
volumes:
- name: consul-config
hostPath:
path: /consul/config
type: DirectoryOrCreate
- name: consul-data
hostPath:
path: /consul/data
type: DirectoryOrCreate
containers:
- name: edgex-core-consul
image: consul:1.9.5
imagePullPolicy: IfNotPresent
ports:
- name: tcp-8500
protocol: TCP
containerPort: 8500
volumeMounts:
- name: consul-config
mountPath: /consul/config
- name: consul-data
mountPath: /consul/data
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-redis
spec:
selector:
matchLabels:
app: edgex-redis
template:
metadata:
labels:
app: edgex-redis
spec:
hostname: edgex-redis
volumes:
- name: db-data
hostPath:
path: /data
type: DirectoryOrCreate
containers:
- name: edgex-redis
image: redis:6.2.4-alpine
imagePullPolicy: IfNotPresent
ports:
- containerPort: 6379
envFrom:
- configMapRef:
name: common-variables
volumeMounts:
- name: db-data
mountPath: /data
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-support-notifications
spec:
selector:
matchLabels:
app: edgex-support-notifications
template:
metadata:
labels:
app: edgex-support-notifications
spec:
hostname: edgex-support-notifications
containers:
- name: edgex-support-notifications
image: edgexfoundry/support-notifications:2.0.0
imagePullPolicy: IfNotPresent
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-support-notifications"
ports:
- name: http
protocol: TCP
containerPort: 59860
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-metadata
spec:
selector:
matchLabels:
app: edgex-core-metadata
template:
metadata:
labels:
app: edgex-core-metadata
spec:
hostname: edgex-core-metadata
containers:
- name: edgex-core-metadata
image: edgexfoundry/core-metadata:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59881
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-core-metadata"
- name: NOTIFICATIONS_SENDER
value: "edgex-core-metadata"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-data
spec:
selector:
matchLabels:
app: edgex-core-data
template:
metadata:
labels:
app: edgex-core-data
spec:
hostname: edgex-core-data
containers:
- name: edgex-core-data
image: edgexfoundry/core-data:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: tcp-59880
protocol: TCP
containerPort: 59880
- name: tcp-5563
protocol: TCP
containerPort: 5563
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-core-data"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-core-command
spec:
selector:
matchLabels:
app: edgex-core-command
template:
metadata:
labels:
app: edgex-core-command
spec:
hostname: edgex-core-command
containers:
- name: edgex-core-command
image: edgexfoundry/core-command:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59882
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-core-command"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-support-scheduler
spec:
selector:
matchLabels:
app: edgex-support-scheduler
template:
metadata:
labels:
app: edgex-support-scheduler
spec:
hostname: edgex-support-scheduler
containers:
- name: edgex-support-scheduler
image: edgexfoundry/support-scheduler:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59861
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-support-scheduler"
- name: INTERVALACTIONS_SCRUBPUSHED_HOST
value: "edgex-core-data"
- name: INTERVALACTIONS_SCRUBAGED_HOST
value: "edgex-core-data"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-app-rules-engine
spec:
selector:
matchLabels:
app: edgex-app-rules-engine
template:
metadata:
labels:
app: edgex-app-rules-engine
spec:
hostname: edgex-app-rules-engine
containers:
- name: edgex-app-rules-engine
image: edgexfoundry/app-service-configurable:2.0.1
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59701
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-app-rules-engine"
- name: EDGEX_PROFILE
value: "rules-engine"
- name: TRIGGER_EDGEXMESSAGEBUS_PUBLISHHOST_HOST
value: "edgex-redis"
- name: TRIGGER_EDGEXMESSAGEBUS_SUBSCRIBEHOST_HOST
value: "edgex-redis"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-kuiper
spec:
selector:
matchLabels:
app: edgex-kuiper
template:
metadata:
labels:
app: edgex-kuiper
spec:
hostname: edgex-kuiper
volumes:
- name: kuiper-data
hostPath:
path: /kuiper/data
type: DirectoryOrCreate
containers:
- name: edgex-kuiper
image: lfedge/ekuiper:1.3.0-alpine
imagePullPolicy: IfNotPresent
ports:
- name: tcp-59720
protocol: TCP
containerPort: 59720
env:
- name: KUIPER__BASIC__CONSOLELOG
value: "true"
- name: KUIPER__BASIC__RESTPORT
value: "59720"
- name: EDGEX__DEFAULT__TYPE
value: "redis"
- name: EDGEX__DEFAULT__SERVER
value: "edgex-redis"
- name: EDGEX__DEFAULT__TOPIC
value: "rules-events"
- name: EDGEX__DEFAULT__PROTOCOL
value: "redis"
- name: EDGEX__DEFAULT__PORT
value: "6379"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-device-virtual
spec:
selector:
matchLabels:
app: edgex-device-virtual
template:
metadata:
labels:
app: edgex-device-virtual
spec:
hostname: edgex-device-virtual
containers:
- name: edgex-device-virtual
image: edgexfoundry/device-virtual:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59900
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-device-virtual"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-device-rest
spec:
selector:
matchLabels:
app: edgex-device-rest
template:
metadata:
labels:
app: edgex-device-rest
spec:
hostname: edgex-device-rest
containers:
- name: edgex-device-rest
image: edgexfoundry/device-rest:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59986
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-device-rest"
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-ui-go
spec:
selector:
matchLabels:
app: edgex-ui-go
template:
metadata:
labels:
app: edgex-ui-go
spec:
hostname: edgex-ui-go
containers:
- name: edgex-ui-go
image: edgexfoundry/edgex-ui:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 4000
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-sys-mgmt-agent
spec:
selector:
matchLabels:
app: edgex-sys-mgmt-agent
template:
metadata:
labels:
app: edgex-sys-mgmt-agent
spec:
hostname: edgex-sys-mgmt-agent
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker/sock
type: DirectoryOrCreate
containers:
- name: edgex-sys-mgmt-agent
image: edgexfoundry/sys-mgmt-agent:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 58890
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-sys-mgmt-agent"
- name: EXECUTORPATH
value: "/sys-mgmt-executor"
- name: METRICSMECHANISM
value: "executor"
volumeMounts:
- name: docker-sock
mountPath: /var/run/docker.sock
- apiVersion: apps/v1
kind: Deployment
metadata:
name: edgex-device-modbus
spec:
selector:
matchLabels:
app: edgex-device-modbus
template:
metadata:
labels:
app: edgex-device-modbus
spec:
hostname: edgex-device-modbus
volumes:
- name: devices
hostPath:
path: /dev/ttyUSB0
type: DirectoryOrCreate
containers:
- name: edgex-device-modbus
image: edgexfoundry/device-modbus:2.0.0
imagePullPolicy: IfNotPresent
ports:
- name: http
protocol: TCP
containerPort: 59901
envFrom:
- configMapRef:
name: common-variables
env:
- name: SERVICE_HOST
value: "edgex-device-modbus"
- name: devices
mountPath: /dev/ttyUSB0
更多推荐
已为社区贡献1条内容
所有评论(0)