blob: 950e81a05ae42938883940c7c0fb9a35b1228f6c [file] [log] [blame]
---
apiVersion: v1
kind: Service
metadata:
name: jenkins-mendel-linux
annotations:
cloud.google.com/neg: '{"ingress": true}'
spec:
selector:
app: jenkins-operator
jenkins-cr: mendel-linux
type: NodePort
ports:
- protocol: TCP
port: 8080
---
apiVersion: cloud.google.com/v1beta1
kind: BackendConfig
metadata:
name: nginx-apt-backend
spec:
cdn:
enabled: true
cachePolicy:
includeHost: true
includeProtocol: true
includeQueryString: false
---
apiVersion: v1
kind: Service
metadata:
name: nginx-apt
annotations:
cloud.google.com/neg: '{"ingress": true}'
cloud.google.com/backend-config: '{"ports": {"80": "nginx-apt-backend"}}'
spec:
selector:
app: nginx-apt
type: NodePort
ports:
- protocol: TCP
port: 80
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: mendel-linux-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: mendel-linux-ip
ingress.kubernetes.io/ssl-cert: mendel-linux-org
networking.gke.io/managed-certificates: mendel-linux-org
spec:
backend:
serviceName: jenkins-mendel-linux
servicePort: 8080
tls:
- secretName: mendel-linux-ssl-cert
rules:
- host: mendel-linux.org
http:
paths:
- path: /apt/*
backend:
serviceName: nginx-apt
servicePort: 80
- path: /*
backend:
serviceName: jenkins-mendel-linux
servicePort: 8080