added tests

add e2e
This commit is contained in:
jose luis
2024-04-03 19:31:46 +02:00
parent 58974092a5
commit 04acbf111f
5 changed files with 1046 additions and 73 deletions
+17
View File
@@ -0,0 +1,17 @@
version: '3.8'
services:
client:
image: busybox
command: ['sleep', 'infinity']
container_name: threats-client
restart: unless-stopped
ports:
- '8080:8080'
server:
image: busybox
command: ['sleep', 'infinity']
container_name: threats-server
restart: unless-stopped
network_mode: service:client
@@ -0,0 +1,49 @@
---
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: client
name: client
spec:
ports:
- name: "8080"
port: 8080
targetPort: 8080
selector:
io.kompose.service: client
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: client
name: client
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: client
template:
metadata:
labels:
io.kompose.network/network-mode-service-default: "true"
io.kompose.service: client
spec:
containers:
- args:
- sleep
- infinity
image: busybox
name: threats-client
ports:
- containerPort: 8080
hostPort: 8080
protocol: TCP
- args:
- sleep
- infinity
image: busybox
name: threats-server
restartPolicy: Always