mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-29 12:02:48 +00:00
multiple listeners. TODO create different pipelines for each listener
This commit is contained in:
@@ -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
|
||||
|
15
Utilities/tekton-dashboard-loadbalancer.yaml
Normal file
15
Utilities/tekton-dashboard-loadbalancer.yaml
Normal 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
|
Reference in New Issue
Block a user