Skip to content

Commit

Permalink
Create deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinKe authored Dec 28, 2020
0 parents commit 1156b86
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions deploy-plc/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: <APPLICATIONNAME>
namespace: <NAMESPACE>
labels:
app: oisp-testsensor-sensor
spec:
selector:
matchLabels:
app: oisp-testsensor-sensor
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: oisp-testsensor-sensor
spec:
containers:
- name: busybox
image: docker.io/busybox:latest
command: ["sleep"]
args: ["100000000"]
- name: oisp-iot-agent
env:
- name: OISP_DEVICE_ID
value: "<APPLICATIONNAME>"
- name: OISP_DEVICE_ACTIVATION_CODE
valueFrom:
secretKeyRef:
name: global-devices-secret
key: activation-code
volumeMounts:
- name: oisp-devices-config-volume
mountPath: /volume/config
- name: oisp-devices-data-volume
mountPath: /volume/data
image: docker.io/oisp/oisp-iot-agent:v2.1.3
imagePullPolicy: Always
- name: fusiongatewayapp
image: docker.io/ibn40/fusiongatewayapp:latest
env:
- name: server.port
value: "8081"
resources:
limits:
volumeMounts:
- name: gateway-config
mountPath: /app/resources
- name: fusionplcdataservice
image: docker.io/ibn40/fusionplcdataservice:latest
volumeMounts:
- name: dataservice-config
mountPath: /app/resources
volumes:
- name: oisp-devices-config-volume
configMap:
name: global-devices-config
items:
- key: config.json
path: config.json
- name: gateway-config
configMap:
name: <APPLICATIONNAME>-app-config
items:
- key: application.yaml
path: application.yaml
- name: dataservice-config
configMap:
name: <APPLICATIONNAME>-app-config
items:
- key: fusionplcdataservice_application.yaml
path: application.yaml
- name: oisp-devices-data-volume
persistentVolumeClaim:
claimName: <APPLICATIONNAME>-pvc-device-data
imagePullSecrets:
- name: regcred
nodeSelector:
kubernetes.io/hostname: <NODENAME>

0 comments on commit 1156b86

Please sign in to comment.