update compose version to 3.3 for swarm examples so config directive is supported

This commit is contained in:
florian 2022-07-21 21:20:14 +02:00
parent 1819571473
commit cc9d228abd
8 changed files with 81 additions and 53 deletions

View file

@ -1,4 +1,4 @@
version: '3'
version: '3.3'
services:

View file

@ -1,4 +1,4 @@
version: '3'
version: '3.3'
services:

View file

@ -1,4 +1,4 @@
version: '3'
version: '3.3'
services:

View file

@ -1,40 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
annotations:
bunkerweb.io/AUTOCONF: "yes"
bunkerweb.io/AUTO_LETS_ENCRYPT: "yes"
spec:
rules:
- host: app1.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: svc-app1
port:
number: 80
- host: app2.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: svc-app2
port:
number: 80
- host: app3.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: svc-app3
port:
number: 80

View file

@ -1,3 +1,42 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
annotations:
bunkerweb.io/AUTO_LETS_ENCRYPT: "yes"
spec:
rules:
- host: app1.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: svc-app1
port:
number: 80
- host: app2.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: svc-app2
port:
number: 80
- host: app3.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: svc-app3
port:
number: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -98,4 +137,4 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 80

View file

@ -0,0 +1,24 @@
{
"name": "kubernetes-ingress",
"kinds": [
"kubernetes"
],
"timeout": 60,
"tests": [
{
"type": "string",
"url": "https://app1.example.com",
"string": "hello"
},
{
"type": "string",
"url": "https://app2.example.com",
"string": "hello"
},
{
"type": "string",
"url": "https://app3.example.com",
"string": "hello"
}
]
}

View file

@ -1,9 +0,0 @@
#!/bin/bash
if [ $(id -u) -ne 0 ] ; then
echo "❌ Run me as root"
exit 1
fi
chown -R root:101 bw-data
chmod -R 770 bw-data

View file

@ -0,0 +1,14 @@
{
"name": "load-balancer",
"kinds": [
"docker"
],
"timeout": 60,
"tests": [
{
"type": "string",
"url": "https://www.example.com",
"string": "hello"
}
]
}