mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 12:02:47 +00:00
trigger update
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
config.json
|
||||
manifests/triggers/webhook-secret.yaml
|
||||
manifests/resources/secrets.yaml
|
||||
venv
|
||||
|
||||
|
13
deploy.yaml
13
deploy.yaml
@@ -28,6 +28,7 @@ spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-a:latest
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
---
|
||||
@@ -55,6 +56,7 @@ spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-b:latest
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
- containerPort: 6000
|
||||
---
|
||||
@@ -82,6 +84,7 @@ spec:
|
||||
containers:
|
||||
- name: front-end
|
||||
image: beppev/server-c:latest
|
||||
imagePullPolicy: "Always"
|
||||
ports:
|
||||
- containerPort: 6000
|
||||
---
|
||||
@@ -159,18 +162,18 @@ metadata:
|
||||
app: "project-1"
|
||||
spec:
|
||||
hosts:
|
||||
"*"
|
||||
- "*"
|
||||
gateways:
|
||||
- expose-server-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /server-a/
|
||||
prefix: /server-a
|
||||
route:
|
||||
- destination:
|
||||
port:
|
||||
number: 5000
|
||||
host: expose-server-service
|
||||
port:
|
||||
number: 5000
|
||||
host: expose-server-service
|
||||
--- # TODO fix gateway zodat we ingress gateway kunnen gebruike ipv de fuken loadbalancer.
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: Gateway
|
||||
|
@@ -39,3 +39,9 @@ spec:
|
||||
value: "latest"
|
||||
- name: pathToContext-b
|
||||
value: "./serverB"
|
||||
- name: imageUrl-c
|
||||
value: "server-c"
|
||||
- name: imageTag-c
|
||||
value: "latest"
|
||||
- name: pathToContext-c
|
||||
value: "./serverC"
|
@@ -8,7 +8,7 @@ spec:
|
||||
inputs:
|
||||
params:
|
||||
- name: GitHubOrg
|
||||
value: "github.com"
|
||||
value: "beppevanrolleghem"
|
||||
- name: GitHubUser
|
||||
value: "beppevanrolleghem"
|
||||
- name: GitHubRepo
|
||||
|
@@ -5,11 +5,22 @@ app = Flask(__name__)
|
||||
|
||||
URL = "http://server-check:6000"
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(error):
|
||||
return "beppe's 404 error"
|
||||
|
||||
@app.route('/')
|
||||
def doRequest():
|
||||
return "it works"
|
||||
|
||||
@app.route('/server-a')
|
||||
def checkThis():
|
||||
return "server-a is apparently something to worry abt"
|
||||
|
||||
@app.route("/server-a/check")
|
||||
def itAlsoWorks():
|
||||
return requests.get(URL).json()
|
||||
|
||||
@app.route('/check')
|
||||
def itWorks():
|
||||
return requests.get(URL).json()
|
||||
|
Reference in New Issue
Block a user