141 lines
3.1 KiB
YAML
141 lines
3.1 KiB
YAML
---
|
|
apiVersion: types.kubefed.io/v1beta1
|
|
kind: FederatedIngress
|
|
metadata:
|
|
name: filter-ingress
|
|
namespace: birbnetes
|
|
spec:
|
|
placement:
|
|
clusters:
|
|
- name: cloud
|
|
- name: edge-1
|
|
- name: edge-2
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
ingressclass.kubernetes.io/is-default-class: ""
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- http:
|
|
paths:
|
|
- path: /filter
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: svm-prefilter-service-service
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: types.kubefed.io/v1beta1
|
|
kind: FederatedService
|
|
metadata:
|
|
name: svm-prefilter-service-service
|
|
namespace: birbnetes
|
|
labels:
|
|
app: svm-prefilter-service
|
|
spec:
|
|
template:
|
|
spec:
|
|
selector:
|
|
app: svm-prefilter-service
|
|
type: ClusterIP
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 8000
|
|
protocol: TCP
|
|
placement:
|
|
clusters:
|
|
- name: cloud
|
|
- name: edge-1
|
|
- name: edge-2
|
|
---
|
|
apiVersion: types.kubefed.io/v1beta1
|
|
kind: FederatedDeployment
|
|
metadata:
|
|
name: svm-prefilter-service
|
|
namespace: birbnetes
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: svm-prefilter-service
|
|
spec:
|
|
replicas: 0
|
|
selector:
|
|
matchLabels:
|
|
app: svm-prefilter-service
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: svm-prefilter-service
|
|
spec:
|
|
containers:
|
|
- image: registry.kmlabz.com/birbnetes/svm-prefilter-service
|
|
name: testpoint
|
|
imagePullPolicy: Always
|
|
envFrom:
|
|
- configMapRef:
|
|
name: svm-prefilter-service-config
|
|
ports:
|
|
- containerPort: 8000
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
placement:
|
|
clusters:
|
|
- name: cloud
|
|
- name: edge-1
|
|
- name: edge-2
|
|
overrides:
|
|
- clusterName: cloud
|
|
clusterOverrides:
|
|
- path: "/spec/replicas"
|
|
value: 0
|
|
- clusterName: edge-1
|
|
clusterOverrides:
|
|
- path: "/spec/replicas"
|
|
value: 0
|
|
- clusterName: edge-2
|
|
clusterOverrides:
|
|
- path: "/spec/replicas"
|
|
value: 0
|
|
---
|
|
apiVersion: types.kubefed.io/v1beta1
|
|
kind: FederatedConfigMap
|
|
metadata:
|
|
name: svm-prefilter-service-config
|
|
namespace: birbnetes
|
|
spec:
|
|
template:
|
|
data:
|
|
MODEL_INFO_URL: "http://192.168.110.100:30420/model/svm/$default"
|
|
INPUT_SERVICE_URL: "http://192.168.110.100:30420/input"
|
|
REPORT_ALIAS: ""
|
|
REPORT_URL: "http://192.168.110.100:30420/report/site"
|
|
placement:
|
|
clusters:
|
|
- name: cloud
|
|
- name: edge-1
|
|
- name: edge-2
|
|
overrides:
|
|
- clusterName: cloud
|
|
clusterOverrides:
|
|
- path: /data/MODEL_INFO_URL
|
|
value: "http://model-service/model/svm/$default"
|
|
- path: /data/INPUT_SERVICE_URL
|
|
value: "http://input-service/input"
|
|
- path: /data/REPORT_ALIAS
|
|
value: cloud
|
|
- clusterName: edge-1
|
|
clusterOverrides:
|
|
- path: /data/REPORT_ALIAS
|
|
value: edge-1
|
|
- clusterName: edge-2
|
|
clusterOverrides:
|
|
- path: /data/REPORT_ALIAS
|
|
value: edge-2
|
|
|