mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 12:02:47 +00:00
LETSGO
This commit is contained in:
25
manifests/demo.yaml
Normal file
25
manifests/demo.yaml
Normal 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
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user