This commit is contained in:
2020-03-16 10:00:52 +01:00
parent 68921748f0
commit 1f3a134e52
3 changed files with 29 additions and 18 deletions

25
manifests/demo.yaml Normal file
View File

@@ -0,0 +1,25 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: shell-demo
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/managed-by: EventListener
app.kubernetes.io/part-of: Triggers
eventlistener: github-event-listener
template:
metadata:
labels:
app.kubernetes.io/managed-by: EventListener
app.kubernetes.io/part-of: Triggers
eventlistener: github-event-listener
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: "Always"
ports:
- containerPort: 8080

View File

@@ -9,9 +9,9 @@ metadata:
spec:
params:
- name: gitrevision
value: $(body)
value: $(body.repository.default_branch)
- name: gitrepositoryurl
value: $(body)
value: $(body.repository.clone_url)
# - name: prurl
# value: $(body.pull_request.html_url)
# - name: repo

View File

@@ -88,23 +88,10 @@ spec:
- name: GitHubSecretStringKey
value: secret
- name: ExternalDomain
value: "ingress.llocal.host:31040/github"
value: "ingress.llocal.host"
timeout: 1000s
serviceAccountName: service-acc
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: github-ingress
spec:
rules:
- http:
paths:
- path: /github
backend:
serviceName: manual-service
servicePort: 8080
---
apiVersion: v1
kind: Service
metadata:
@@ -115,12 +102,11 @@ spec:
port: 8080
protocol: TCP
targetPort: 8080
nodePort: 30037
selector:
app.kubernetes.io/managed-by: EventListener
app.kubernetes.io/part-of: Triggers
eventlistener: github-event-listener
type: NodePort
type: LoadBalancer