-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.yaml
42 lines (42 loc) · 904 Bytes
/
service.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apiVersion: v1
kind: Service
metadata:
name: google-api-svc
namespace: pcfweb
spec:
selector:
ray-cluster-name: pcfweb
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8000
type: LoadBalancer
sessionAffinity: None
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: google-api-ingress
namespace: pcfweb
annotations:
cert-manager.io/cluster-issuer: letsencrypt
cert-manager.io/issue-temporary-certificate: "true"
acme.cert-manager.io/http01-edit-in-place: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- google-api.pigscanfly.ca
secretName: google-api-tls-secret
rules:
- host: "google-api.pigscanfly.ca"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: google-api-svc
port:
number: 80