본문 바로가기
카테고리 없음

🥰 kubeflow istio-gateway sample

by Knowledge Store In Hyunsoft 2022. 6. 16.
apiVersion: v1
kind: List
items:
- apiVersion: networking.istio.io/v1beta1
  kind: Gateway
  metadata:
    labels:
      app.kubernetes.io/instance: istio
    name: kubeflow-gateway
    namespace: kubeflow
  spec:
    selector:
      istio: ingressgateway
    servers:
    - hosts:
      - '*'
      port:
        name: http
        number: 80
        protocol: HTTP
      tls:
        httpsRedirect: true
    - hosts:
      - '*'
      port:
        name: https
        number: 443
        protocol: HTTPS
      tls:
        mode: SIMPLE
        privateKey: /etc/istio/ingressgateway-certs/tls.key
        serverCertificate: /etc/istio/ingressgateway-certs/tls.crt

---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  labels:
    app: centraldashboard
    app.kubernetes.io/component: centraldashboard
    app.kubernetes.io/instance: central-dashboard
    app.kubernetes.io/name: centraldashboard
    kustomize.component: centraldashboard
  name: centraldashboard
  namespace: kubeflow
spec:
  gateways:
  - kubeflow-gateway
  hosts:
  - '*'
  http:
  - match:
    - uri:
        prefix: /
    rewrite:
      uri: /
    route:
    - destination:
        host: centraldashboard.kubeflow.svc.cluster.local
        port:
          number: 80

---          
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  labels:
    app: jupyter-web-app
    app.kubernetes.io/instance: jupyter-web-app
    kustomize.component: jupyter-web-app
  name: jupyter-web-app-jupyter-web-app
  namespace: kubeflow
spec:
  gateways:
  - kubeflow-gateway
  hosts:
  - '*'
  http:
  - headers:
      request:
        add:
          x-forwarded-prefix: /jupyter
    match:
    - uri:
        prefix: /jupyter/
    rewrite:
      uri: /
    route:
    - destination:
        host: jupyter-web-app-service.kubeflow.svc.cluster.local
        port:
          number: 80

---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  labels:
    app.kubernetes.io/instance: pipelines
    application-crd-id: kubeflow-pipelines
  name: metadata-grpc
  namespace: kubeflow
spec:
  gateways:
  - kubeflow-gateway
  hosts:
  - '*'
  http:
  - match:
    - uri:
        prefix: /ml_metadata
    rewrite:
      uri: /ml_metadata
    route:
    - destination:
        host: metadata-envoy-service.kubeflow.svc.cluster.local
        port:
          number: 9090

---
kind: VirtualService
metadata:
  labels:
    app: tensorboards-web-app
    app.kubernetes.io/instance: tensorboards-web-app
    kustomize.component: tensorboards-web-app
  name: tensorboards-web-app-tensorboards-web-app
  namespace: kubeflow
spec:
  gateways:
  - kubeflow-gateway
  hosts:
  - '*'
  http:
  - headers:
      request:
        add:
          x-forwarded-prefix: /tensorboards
    match:
    - uri:
        prefix: /tensorboards/
    rewrite:
      uri: /
    route:
    - destination:
        host: tensorboards-web-app-service.kubeflow.svc.cluster.local
        port:
          number: 80

---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  labels:
    app: volumes-web-app
    app.kubernetes.io/instance: volumes-web-app
    kustomize.component: volumes-web-app
  name: volumes-web-app-volumes-web-app
  namespace: kubeflow
spec:
  gateways:
  - kubeflow-gateway
  hosts:
  - '*'
  http:
  - headers:
      request:
        add:
          x-forwarded-prefix: /volumes
    match:
    - uri:
        prefix: /volumes/
    rewrite:
      uri: /
    route:
    - destination:
        host: volumes-web-app-service.kubeflow.svc.cluster.local
        port:
          number: 80
# kubectl -n kubeflow get svc -o wide


NAME                                                        TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)             AGE     SELECTOR
admission-webhook-service                                   ClusterIP   10.233.63.116   <none>        443/TCP             4h51m   app.kubernetes.io/component=poddefaults,app.kubernetes.io/name=poddefaults,app=poddefaults,kustomize.component=poddefaults
cache-server                                                ClusterIP   10.233.58.91    <none>        443/TCP             4h50m   app.kubernetes.io/component=ml-pipeline,app.kubernetes.io/name=kubeflow-pipelines,app=cache-server,application-crd-id=kubeflow-pipelines
centraldashboard                                            ClusterIP   10.233.21.184   <none>        80/TCP              4h56m   app.kubernetes.io/component=centraldashboard,app.kubernetes.io/name=centraldashboard,app=centraldashboard,kustomize.component=centraldashboard
jupyter-web-app-service                                     ClusterIP   10.233.47.10    <none>        80/TCP              4h56m   app=jupyter-web-app,kustomize.component=jupyter-web-app
kfserving-controller-manager-metrics-service                ClusterIP   10.233.37.128   <none>        8443/TCP            4h48m   app.kubernetes.io/component=kfserving,app.kubernetes.io/name=kfserving,app=kfserving,control-plane=kfserving-controller-manager,controller-tools.k8s.io=1.0,kustomize.component=kfserving
kfserving-controller-manager-service                        ClusterIP   10.233.35.91    <none>        443/TCP             4h48m   app.kubernetes.io/component=kfserving,app.kubernetes.io/name=kfserving,app=kfserving,control-plane=kfserving-controller-manager,controller-tools.k8s.io=1.0,kustomize.component=kfserving
kfserving-webhook-server-service                            ClusterIP   10.233.48.168   <none>        443/TCP             4h48m   app.kubernetes.io/component=kfserving,app.kubernetes.io/name=kfserving,app=kfserving,control-plane=kfserving-controller-manager,kustomize.component=kfserving
kubeflow-pipelines-profile-controller                       ClusterIP   10.233.35.28    <none>        80/TCP              4h50m   app.kubernetes.io/component=ml-pipeline,app.kubernetes.io/name=kubeflow-pipelines,app=kubeflow-pipelines-profile-controller,application-crd-id=kubeflow-pipelines
metadata-envoy-service                                      ClusterIP   10.233.16.238   <none>        9090/TCP            4h50m   application-crd-id=kubeflow-pipelines,component=metadata-envoy
metadata-grpc-service                                       ClusterIP   10.233.26.192   <none>        8080/TCP            4h50m   application-crd-id=kubeflow-pipelines,component=metadata-grpc-server
minio-service                                               ClusterIP   10.233.11.144   <none>        9000/TCP            4h50m   app=minio,application-crd-id=kubeflow-pipelines
ml-pipeline                                                 ClusterIP   10.233.44.216   <none>        8888/TCP,8887/TCP   4h49m   app.kubernetes.io/component=ml-pipeline,app.kubernetes.io/name=kubeflow-pipelines,app=ml-pipeline,application-crd-id=kubeflow-pipelines
ml-pipeline-ui                                              ClusterIP   10.233.55.209   <none>        80/TCP              4h49m   app.kubernetes.io/component=ml-pipeline,app.kubernetes.io/name=kubeflow-pipelines,app=ml-pipeline-ui,application-crd-id=kubeflow-pipelines
ml-pipeline-visualizationserver                             ClusterIP   10.233.24.116   <none>        8888/TCP            4h49m   app.kubernetes.io/component=ml-pipeline,app.kubernetes.io/name=kubeflow-pipelines,app=ml-pipeline-visualizationserver,application-crd-id=kubeflow-pipelines
mysql                                                       ClusterIP   10.233.55.117   <none>        3306/TCP            4h49m   app=mysql,application-crd-id=kubeflow-pipelines
notebook-controller-service                                 ClusterIP   10.233.29.220   <none>        443/TCP             4h59m   app=notebook-controller,kustomize.component=notebook-controller
pgadmin                                                     NodePort    10.233.49.50    <none>        4888:32376/TCP      4h55m   app=pgadmin
profiles-kfam                                               ClusterIP   10.233.53.243   <none>        8081/TCP            4h59m   kustomize.component=profiles
pvcviewer-controller-controller-manager-metrics-service     ClusterIP   10.233.46.208   <none>        8443/TCP            4h53m   app=pvcviewer-controller,control-plane=controller-manager,kustomize.component=pvcviewer-controller
pytorch-operator                                            ClusterIP   10.233.26.88    <none>        8443/TCP            4h56m   app.kubernetes.io/component=pytorch,app.kubernetes.io/name=pytorch-operator,app=pytorch-operator,kustomize.component=pytorch-operator,name=pytorch-operator
tensorboard-controller-controller-manager-metrics-service   ClusterIP   10.233.29.91    <none>        8443/TCP            4h56m   control-plane=controller-manager
tensorboards-web-app-service                                ClusterIP   10.233.3.57     <none>        80/TCP              4h57m   app=tensorboards-web-app,kustomize.component=tensorboards-web-app
tf-job-operator                                             ClusterIP   10.233.44.91    <none>        8443/TCP            4h59m   app.kubernetes.io/component=tfjob,app.kubernetes.io/name=tf-job-operator,app=tf-job-operator,kustomize.component=tf-job-operator,name=tf-job-operator
volumes-web-app-service                                     ClusterIP   10.233.11.247   <none>        80/TCP              4h57m   app=volumes-web-app,kustomize.component=volumes-web-app
workflow-controller-metrics                                 ClusterIP   10.233.8.246    <none>        9090/TCP            4h49m   app=workflow-controller,application-crd-id=kubeflow-pipelines
xgboost-operator-service                                    ClusterIP   10.233.10.77    <none>        443/TCP             4h59m   app.kubernetes.io/component=xgboostjob,app.kubernetes.io/name=xgboost-operator,app=xgboost-operator

 

728x90

댓글