You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jitsi-deploy/argocd/ingressroute-server.yaml.sh

32 lines
731 B

if [ -n "${FQDN}" ]; then
HOST_RULE="Host(\`${FQDN}\`)"
TLS_CERT_RESOLVER="certResolver: ${CERT_RESOLVER}"
else
HOST_RULE="Host(\`${PUBLIC_IP}\`)"
TLS_MAP="{}"
fi
cat <<EOF
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: argocd-server
namespace: argocd
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: ${HOST_RULE} && PathPrefix(\`/argocd\`)
services:
- name: argocd-server
port: 80
- kind: Rule
match: ${HOST_RULE} && PathPrefix(\`/argocd\`) && Headers(\`Content-Type\`, \`application/grpc\`)
services:
- name: argocd-server
port: 80
scheme: h2c
tls: ${TLS_MAP}
${TLS_CERT_RESOLVER}
EOF