From d3ed5a87af350a4b3f5186a95dde34f602ab4141 Mon Sep 17 00:00:00 2001 From: Beppe Vanrolleghem Date: Mon, 23 Mar 2020 13:43:42 +0100 Subject: [PATCH] de verkeerde pipeline upgedate :/ --- Tekton/pipeline/application-pipeline.yaml | 8 +------- Tekton/pipeline/infra-pipeline.yaml | 2 +- infra/example-service.yaml | 20 +++++++++++++++++++- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/Tekton/pipeline/application-pipeline.yaml b/Tekton/pipeline/application-pipeline.yaml index f7ee00d..3f4836c 100644 --- a/Tekton/pipeline/application-pipeline.yaml +++ b/Tekton/pipeline/application-pipeline.yaml @@ -90,13 +90,7 @@ spec: runAfter: - build-and-push conditions: - - conditionRef: is-not-equal - params: - - name: left - value: "error" - - name: right - value: "$(tasks.build-and-push.results.state)" - + - conditionRef: is-not-equal params: - name: left diff --git a/Tekton/pipeline/infra-pipeline.yaml b/Tekton/pipeline/infra-pipeline.yaml index 8c977c6..181aad1 100644 --- a/Tekton/pipeline/infra-pipeline.yaml +++ b/Tekton/pipeline/infra-pipeline.yaml @@ -2,7 +2,7 @@ apiVersion: tekton.dev/v1beta1 kind: Pipeline metadata: - name: infrastructure-pipeline + name: infra-pipeline namespace: tekton-pipeline-1 spec: params: diff --git a/infra/example-service.yaml b/infra/example-service.yaml index ae8bf72..aa438a1 100644 --- a/infra/example-service.yaml +++ b/infra/example-service.yaml @@ -8,4 +8,22 @@ spec: - name: test protocol: TCP port: 666 - targetPort: 666 \ No newline at end of file + targetPort: 666 +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: application-ingress + namespace: default + annotations: + kubernetes.io/ingress.class: "nginx" +spec: + rules: + - host: pipeline.llocal.host + http: + paths: + - path: /stage-frontend + backend: + serviceName: stage-frontend-service + servicePort: 80 +