multiple listeners. TODO create different pipelines for each listener

This commit is contained in:
2020-03-18 17:36:57 +01:00
parent 6b62b0f3ef
commit 1860b861c0
17 changed files with 818 additions and 43 deletions

View File

@@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: shell-demo
namespace: tekton-pipeline-1
spec:
replicas: 1
selector:
@@ -10,16 +11,38 @@ spec:
app.kubernetes.io/managed-by: EventListener
app.kubernetes.io/part-of: Triggers
eventlistener: github-event-listener
test: "true"
template:
metadata:
labels:
app.kubernetes.io/managed-by: EventListener
app.kubernetes.io/part-of: Triggers
eventlistener: github-event-listener
test: "true"
spec:
containers:
- name: network-multitool
image: praqma/network-multitool
imagePullPolicy: "Always"
ports:
- containerPort: 8080
- containerPort: 8080
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: test-service
namespace: tekton-pipeline-1
spec:
selector:
test: "true"
ports:
- protocol: TCP
port: 8080
targetPort: 8080

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: manual-service
namespace: tekton-pipelines
spec:
ports:
- name: http-listener
port: 9097
protocol: TCP
targetPort: 9097
selector:
app: tekton-dashboard
type: LoadBalancer