-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress-gce.cue
55 lines (50 loc) · 1007 Bytes
/
ingress-gce.cue
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
43
44
45
46
47
48
49
50
51
52
53
54
55
package mlb_app
import (
networking_v1beta1 "k8s.io/api/networking/v1beta1"
)
#IngressGCE: {
#App: string
#CommonLabels: {
app: #App
release: #Release
...
}
#Name: string | *"\(#Release)-\(#App)"
#Release: string
service: metadata: annotations: {
"beta.cloud.google.com/backend-config": "{\"default\": \"\(backendConfig.metadata.name)\"}"
"cloud.google.com/neg": "{\"ingress\": true}"
}
ingress: networking_v1beta1.#Ingress & {
apiVersion: "networking.k8s.io/v1beta1"
kind: "Ingress"
metadata: {
annotations: {
"argocd.argoproj.io/sync-wave": "1"
"kubernetes.io/ingress.class": "gce"
...
}
labels: {
#CommonLabels
...
}
name: #Name
}
spec: rules: [...{
http: paths: [...{
backend: serviceName: service.metadata.name
}]
}]
}
backendConfig: {
apiVersion: "cloud.google.com/v1beta1"
kind: "BackendConfig"
metadata: {
labels: {
#CommonLabels
...
}
name: #Name
}
}
}