-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: fix issue in which plugin registration fails to register cycl…
…ed plugin
- Loading branch information
1 parent
3246599
commit 225ae87
Showing
6 changed files
with
315 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# | ||
# emulator.yaml | ||
# | ||
# A simple example Kubernetes deployment for Synse's emulator plugin, | ||
# intended to be run in conjunction with a Synse Server deployment. | ||
# | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: emulator-config | ||
labels: | ||
synse-component: plugin | ||
app: emulator | ||
data: | ||
config.yml: "debug: true\nid:\n useCustom:\n - emu-1\nnetwork:\n address: :5001\n type: tcp\nsettings:\n cache:\n enabled: true\n ttl: 5m\n mode: parallel\n read:\n interval: 1s\n write:\n interval: 2s\nversion: 3\n" | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: emulator-devices | ||
labels: | ||
synse-component: plugin | ||
app: emulator | ||
data: | ||
config.yml: "devices:\n- context:\n model: emul8-temp\n instances:\n - data:\n id: 1\n info: Synse Temperature Sensor 1\n - data:\n id: 2\n info: Synse Temperature Sensor 2\n - data:\n id: 3\n info: Synse Temperature Sensor 3\n - data:\n id: 4\n info: Synse Temperature Sensor 4\n type: temperature\nversion: 3\n" | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: emulator | ||
labels: | ||
synse-component: plugin | ||
app: emulator | ||
spec: | ||
type: ClusterIP | ||
clusterIP: None | ||
ports: | ||
- port: 5001 | ||
targetPort: http | ||
name: http | ||
selector: | ||
synse-component: plugin | ||
app: emulator | ||
|
||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: emulator | ||
labels: | ||
app: emulator | ||
synse-component: plugin | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
synse-component: plugin | ||
app: emulator | ||
template: | ||
metadata: | ||
name: emulator | ||
labels: | ||
synse-component: plugin | ||
app: emulator | ||
spec: | ||
terminationGracePeriodSeconds: 3 | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: emulator-config | ||
- name: devices | ||
configMap: | ||
name: emulator-devices | ||
containers: | ||
- name: emulator-plugin | ||
image: vaporio/emulator-plugin | ||
imagePullPolicy: Always | ||
ports: | ||
- name: http | ||
containerPort: 5001 | ||
env: | ||
- name: PLUGIN_METRICS_ENABLED | ||
value: "true" | ||
volumeMounts: | ||
- name: config | ||
mountPath: /etc/synse/plugin/config/config.yml | ||
subPath: config.yml | ||
- name: devices | ||
mountPath: /etc/synse/plugin/config/device |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# | ||
# deployment.yaml | ||
# | ||
# A simple example Kubernetes deployment for Synse Server and the | ||
# emulator plugin. | ||
# | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: synse-server-config | ||
labels: | ||
app: synse-server | ||
data: | ||
config.yml: "logging: debug\nplugin:\n discover:\n kubernetes:\n endpoints:\n labels:\n synse-component: plugin\n namespace: default\npretty_json: true\n" | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: synse-server | ||
labels: | ||
app: synse-server | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 5000 | ||
name: http | ||
selector: | ||
app: synse-server | ||
|
||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: synse-server | ||
labels: | ||
app: synse-server | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: synse-server | ||
template: | ||
metadata: | ||
name: synse-server | ||
labels: | ||
app: synse-server | ||
spec: | ||
terminationGracePeriodSeconds: 3 | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: synse-server-config | ||
containers: | ||
- name: synse-server | ||
image: vaporio/synse-server | ||
imagePullPolicy: Always | ||
ports: | ||
- name: http | ||
containerPort: 5000 | ||
env: | ||
- name: SYNSE_METRICS_ENABLED | ||
value: "true" | ||
volumeMounts: | ||
- name: config | ||
mountPath: /etc/synse/server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.