fix: support host port and protocol in functional tests (#1586)

This commit is contained in:
AhmedGrati 2023-02-12 01:19:29 +01:00 committed by GitHub
parent 20dfb84f38
commit b141d99106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 172 additions and 52 deletions

View File

@ -115,6 +115,8 @@ spec:
name: web
ports:
- containerPort: 5000
hostPort: 5000
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /code

View File

@ -138,6 +138,8 @@ spec:
name: web
ports:
- containerPort: 5000
hostPort: 5000
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /code

View File

@ -59,6 +59,7 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
resources: {}
restartPolicy: Always
topologySpreadConstraints:

View File

@ -59,6 +59,7 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
resources: {}
restartPolicy: Always
topologySpreadConstraints:

View File

@ -64,6 +64,7 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
resources: {}
restartPolicy: Always
status: {}
@ -118,6 +119,8 @@ spec:
name: web
ports:
- containerPort: 5000
hostPort: 5000
protocol: TCP
resources: {}
restartPolicy: Always
status: {}

View File

@ -64,6 +64,7 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
resources: {}
restartPolicy: Always
test: false
@ -139,6 +140,8 @@ spec:
name: web
ports:
- containerPort: 5000
hostPort: 5000
protocol: TCP
resources: {}
restartPolicy: Always
test: false

View File

@ -1,28 +1,3 @@
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.service.group: my-group
kompose.service.healthcheck.liveness.tcp_port: "8081"
kompose.service.healthcheck.readiness.interval: 11s
kompose.service.healthcheck.readiness.retries: "6"
kompose.service.healthcheck.readiness.tcp_port: "9091"
kompose.service.healthcheck.readiness.timeout: 2s
creationTimestamp: null
labels:
io.kompose.service: my-group
name: mysql
spec:
ports:
- name: "3306"
port: 3306
targetPort: 3306
selector:
io.kompose.service: my-group
status:
loadBalancer: {}
---
apiVersion: v1
kind: Service
@ -48,6 +23,31 @@ spec:
status:
loadBalancer: {}
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.service.group: my-group
kompose.service.healthcheck.liveness.tcp_port: "8081"
kompose.service.healthcheck.readiness.interval: 11s
kompose.service.healthcheck.readiness.retries: "6"
kompose.service.healthcheck.readiness.tcp_port: "9091"
kompose.service.healthcheck.readiness.timeout: 2s
creationTimestamp: null
labels:
io.kompose.service: my-group
name: mysql
spec:
ports:
- name: "3306"
port: 3306
targetPort: 3306
selector:
io.kompose.service: my-group
status:
loadBalancer: {}
---
apiVersion: v1
kind: Service
@ -103,11 +103,11 @@ kind: Deployment
metadata:
annotations:
kompose.service.group: my-group
kompose.service.healthcheck.liveness.tcp_port: "8080"
kompose.service.healthcheck.readiness.interval: 10s
kompose.service.healthcheck.readiness.retries: "5"
kompose.service.healthcheck.readiness.tcp_port: "9090"
kompose.service.healthcheck.readiness.timeout: 1s
kompose.service.healthcheck.liveness.tcp_port: "8081"
kompose.service.healthcheck.readiness.interval: 11s
kompose.service.healthcheck.readiness.retries: "6"
kompose.service.healthcheck.readiness.tcp_port: "9091"
kompose.service.healthcheck.readiness.timeout: 2s
creationTimestamp: null
labels:
io.kompose.service: my-group
@ -122,34 +122,17 @@ spec:
metadata:
annotations:
kompose.service.group: my-group
kompose.service.healthcheck.liveness.tcp_port: "8081"
kompose.service.healthcheck.readiness.interval: 11s
kompose.service.healthcheck.readiness.retries: "6"
kompose.service.healthcheck.readiness.tcp_port: "9091"
kompose.service.healthcheck.readiness.timeout: 2s
kompose.service.healthcheck.liveness.tcp_port: "8080"
kompose.service.healthcheck.readiness.interval: 10s
kompose.service.healthcheck.readiness.retries: "5"
kompose.service.healthcheck.readiness.tcp_port: "9090"
kompose.service.healthcheck.readiness.timeout: 1s
creationTimestamp: null
labels:
io.kompose.network/healthcheck-default: "true"
io.kompose.service: my-group
spec:
containers:
- image: mysql
livenessProbe:
failureThreshold: 6
periodSeconds: 11
tcpSocket:
port: 8081
timeoutSeconds: 2
name: mysql
ports:
- containerPort: 3306
readinessProbe:
failureThreshold: 6
periodSeconds: 11
tcpSocket:
port: 9091
timeoutSeconds: 2
resources: {}
- image: mongo
livenessProbe:
failureThreshold: 5
@ -160,6 +143,7 @@ spec:
name: mongo
ports:
- containerPort: 27017
protocol: TCP
readinessProbe:
failureThreshold: 5
periodSeconds: 10
@ -167,6 +151,24 @@ spec:
port: 9090
timeoutSeconds: 1
resources: {}
- image: mysql
livenessProbe:
failureThreshold: 6
periodSeconds: 11
tcpSocket:
port: 8081
timeoutSeconds: 2
name: mysql
ports:
- containerPort: 3306
protocol: TCP
readinessProbe:
failureThreshold: 6
periodSeconds: 11
tcpSocket:
port: 9091
timeoutSeconds: 2
resources: {}
restartPolicy: Always
status: {}
@ -235,6 +237,7 @@ spec:
name: postgresql
ports:
- containerPort: 5432
protocol: TCP
readinessProbe:
failureThreshold: 5
httpGet:
@ -289,6 +292,7 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
readinessProbe:
exec:
command:

View File

@ -136,6 +136,7 @@ spec:
name: mongo
ports:
- containerPort: 27017
protocol: TCP
readinessProbe:
failureThreshold: 5
periodSeconds: 10
@ -226,6 +227,7 @@ spec:
name: mysql
ports:
- containerPort: 3306
protocol: TCP
readinessProbe:
failureThreshold: 6
periodSeconds: 11
@ -318,6 +320,7 @@ spec:
name: postgresql
ports:
- containerPort: 5432
protocol: TCP
readinessProbe:
failureThreshold: 5
httpGet:
@ -408,6 +411,7 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
readinessProbe:
exec:
command:

View File

@ -46,6 +46,8 @@ spec:
name: librenms
ports:
- containerPort: 8000
hostPort: 8000
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /data

View File

@ -54,6 +54,8 @@ spec:
name: front-end
ports:
- containerPort: 80
hostPort: 80
protocol: TCP
resources: {}
restartPolicy: Always
status: {}

View File

@ -73,6 +73,8 @@ spec:
name: db
ports:
- containerPort: 3306
hostPort: 3306
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/lib/mysql
@ -146,6 +148,8 @@ spec:
name: wordpress
ports:
- containerPort: 80
hostPort: 8000
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/www/html

View File

@ -69,6 +69,8 @@ spec:
name: db
ports:
- containerPort: 3306
hostPort: 3306
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/lib/mysql
@ -127,6 +129,8 @@ spec:
name: db
ports:
- containerPort: 3306
hostPort: 3306
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/lib/mysql
@ -210,6 +214,8 @@ spec:
name: wordpress
ports:
- containerPort: 80
hostPort: 8000
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/www/html
@ -268,6 +274,8 @@ spec:
name: wordpress
ports:
- containerPort: 80
hostPort: 8000
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/www/html

View File

@ -150,42 +150,81 @@ spec:
name: foo
ports:
- containerPort: 6379
protocol: TCP
- containerPort: 6379
protocol: UDP
- containerPort: 3000
protocol: TCP
- containerPort: 3001
protocol: TCP
- containerPort: 3002
protocol: TCP
- containerPort: 3003
protocol: TCP
- containerPort: 3004
protocol: TCP
- containerPort: 3005
protocol: TCP
- containerPort: 8000
hostPort: 8000
protocol: TCP
- containerPort: 8080
hostPort: 9090
protocol: TCP
- containerPort: 8081
hostPort: 9091
protocol: TCP
- containerPort: 22
hostPort: 49100
protocol: TCP
- containerPort: 8001
hostIP: 127.0.0.1
hostPort: 8001
protocol: TCP
- containerPort: 5000
hostIP: 127.0.0.1
hostPort: 5000
protocol: TCP
- containerPort: 5001
hostIP: 127.0.0.1
hostPort: 5001
protocol: TCP
- containerPort: 5002
hostIP: 127.0.0.1
hostPort: 5002
protocol: TCP
- containerPort: 5003
hostIP: 127.0.0.1
hostPort: 5003
protocol: TCP
- containerPort: 5004
hostIP: 127.0.0.1
hostPort: 5004
protocol: TCP
- containerPort: 5005
hostIP: 127.0.0.1
hostPort: 5005
protocol: TCP
- containerPort: 5006
hostIP: 127.0.0.1
hostPort: 5006
protocol: TCP
- containerPort: 5007
hostIP: 127.0.0.1
hostPort: 5007
protocol: TCP
- containerPort: 5008
hostIP: 127.0.0.1
hostPort: 5008
protocol: TCP
- containerPort: 5009
hostIP: 127.0.0.1
hostPort: 5009
protocol: TCP
- containerPort: 5010
hostIP: 127.0.0.1
hostPort: 5010
protocol: TCP
resources:
limits:
memory: "10e3"
@ -241,7 +280,9 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
- containerPort: 1235
hostPort: 1234
protocol: UDP
resources:
limits:

View File

@ -150,42 +150,81 @@ spec:
name: foo
ports:
- containerPort: 6379
protocol: TCP
- containerPort: 6379
protocol: UDP
- containerPort: 3000
protocol: TCP
- containerPort: 3001
protocol: TCP
- containerPort: 3002
protocol: TCP
- containerPort: 3003
protocol: TCP
- containerPort: 3004
protocol: TCP
- containerPort: 3005
protocol: TCP
- containerPort: 8000
hostPort: 8000
protocol: TCP
- containerPort: 8080
hostPort: 9090
protocol: TCP
- containerPort: 8081
hostPort: 9091
protocol: TCP
- containerPort: 22
hostPort: 49100
protocol: TCP
- containerPort: 8001
hostIP: 127.0.0.1
hostPort: 8001
protocol: TCP
- containerPort: 5000
hostIP: 127.0.0.1
hostPort: 5000
protocol: TCP
- containerPort: 5001
hostIP: 127.0.0.1
hostPort: 5001
protocol: TCP
- containerPort: 5002
hostIP: 127.0.0.1
hostPort: 5002
protocol: TCP
- containerPort: 5003
hostIP: 127.0.0.1
hostPort: 5003
protocol: TCP
- containerPort: 5004
hostIP: 127.0.0.1
hostPort: 5004
protocol: TCP
- containerPort: 5005
hostIP: 127.0.0.1
hostPort: 5005
protocol: TCP
- containerPort: 5006
hostIP: 127.0.0.1
hostPort: 5006
protocol: TCP
- containerPort: 5007
hostIP: 127.0.0.1
hostPort: 5007
protocol: TCP
- containerPort: 5008
hostIP: 127.0.0.1
hostPort: 5008
protocol: TCP
- containerPort: 5009
hostIP: 127.0.0.1
hostPort: 5009
protocol: TCP
- containerPort: 5010
hostIP: 127.0.0.1
hostPort: 5010
protocol: TCP
resources:
limits:
memory: "10e3"
@ -223,7 +262,9 @@ spec:
name: redis
ports:
- containerPort: 6379
protocol: TCP
- containerPort: 1235
hostPort: 1234
protocol: UDP
resources:
limits:

View File

@ -43,6 +43,7 @@ spec:
name: db
ports:
- containerPort: 80
protocol: TCP
resources: {}
volumeMounts:
- mountPath: D:\config

View File

@ -43,6 +43,7 @@ spec:
name: db
ports:
- containerPort: 80
protocol: TCP
resources: {}
volumeMounts:
- mountPath: D:\config