Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Included service and ingress yaml files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbyreddy committed Sep 12, 2022
1 parent 6531eff commit c094228
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/cr/v1/cumulocity-iot-edge-cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ metadata:
spec:
version: 1014.0.0
licenseSecretName: license-secret
company: iot.com
company: IoT Company
domain: myown.iot.com
adminCredentialsSecretName: admin-credentials-secret
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
spec:
version: 1014.0.0
licenseSecretName: license-secret
company: iot.com
company: IoT Company
domain: myown.iot.com
adminCredentialsSecretName: admin-credentials-secret

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
spec:
version: 1014.0.0
licenseSecretName: license-secret
company: iot.com
company: IoT Company
domain: myown.iot.com
adminCredentialsSecretName: admin-credentials-secret

Expand Down
2 changes: 1 addition & 1 deletion samples/cr/v1/cumulocity-iot-edge-external-mongodb-cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
spec:
version: 1014.0.0
licenseSecretName: license-secret
company: iot.com
company: IoT Company
domain: myown.iot.com
adminCredentialsSecretName: admin-credentials-secret

Expand Down
19 changes: 19 additions & 0 deletions samples/ingress/cumulocity-iot-edge-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: cumulocity-iot-edge
name: cumulocity-iot-edge-ingress
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: cumulocity-iot-edge-http
port:
number: 80
37 changes: 37 additions & 0 deletions samples/service/cumulocity-iot-edge-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: cumulocity-iot-edge
name: cumulocity-iot-edge-http
namespace: cumulocity-iot-edge
spec:
ports:
- name: 443-443
port: 443
targetPort: 443
- name: 80-80
port: 80
targetPort: 80
selector:
app: cumulocity-iot-edge
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: cumulocity-iot-edge
name: cumulocity-iot-edge-mqtt
namespace: cumulocity-iot-edge
spec:
ports:
- name: 1884-1884
port: 1884
targetPort: 1884
- name: 1883-1883
port: 1883
targetPort: 1883
selector:
app: cumulocity-iot-edge
type: LoadBalancer

0 comments on commit c094228

Please sign in to comment.