mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 20:12:43 +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:
|
spec:
|
||||||
params:
|
params:
|
||||||
- name: gitrevision
|
- name: gitrevision
|
||||||
value: $(body)
|
value: $(body.repository.default_branch)
|
||||||
- name: gitrepositoryurl
|
- name: gitrepositoryurl
|
||||||
value: $(body)
|
value: $(body.repository.clone_url)
|
||||||
# - name: prurl
|
# - name: prurl
|
||||||
# value: $(body.pull_request.html_url)
|
# value: $(body.pull_request.html_url)
|
||||||
# - name: repo
|
# - name: repo
|
||||||
|
@@ -88,23 +88,10 @@ spec:
|
|||||||
- name: GitHubSecretStringKey
|
- name: GitHubSecretStringKey
|
||||||
value: secret
|
value: secret
|
||||||
- name: ExternalDomain
|
- name: ExternalDomain
|
||||||
value: "ingress.llocal.host:31040/github"
|
value: "ingress.llocal.host"
|
||||||
timeout: 1000s
|
timeout: 1000s
|
||||||
serviceAccountName: service-acc
|
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
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@@ -115,12 +102,11 @@ spec:
|
|||||||
port: 8080
|
port: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
nodePort: 30037
|
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/managed-by: EventListener
|
app.kubernetes.io/managed-by: EventListener
|
||||||
app.kubernetes.io/part-of: Triggers
|
app.kubernetes.io/part-of: Triggers
|
||||||
eventlistener: github-event-listener
|
eventlistener: github-event-listener
|
||||||
type: NodePort
|
type: LoadBalancer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user