-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add instructions to develop the API server locally with kind (#…
…11459) * Add instructions to develop the API server locally with kind This provides instructions to provision a kind cluster with all components deployed except for the API server. The API server can then be run locally through VSCode for debugging and faster development. Signed-off-by: mprahl <[email protected]> * Add missing k8s_version input to the kfp-cluster GH action Signed-off-by: mprahl <[email protected]> --------- Signed-off-by: mprahl <[email protected]>
- Loading branch information
Showing
8 changed files
with
278 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ bower_components/ | |
|
||
# Build output | ||
dist | ||
__debug_bin* | ||
|
||
# Web server | ||
frontend/server/dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
manifests/kustomize/env/dev-kind/forward-local-api-endpoint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Endpoints | ||
metadata: | ||
name: ml-pipeline | ||
subsets: | ||
- addresses: | ||
- ip: 172.17.0.1 # docker0 bridge ip | ||
ports: | ||
- name: http | ||
appProtocol: http | ||
port: 8887 | ||
protocol: TCP | ||
- name: grpc | ||
appProtocol: http | ||
port: 8888 | ||
protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ../../base/application | ||
- ./forward-local-api-endpoint.yaml | ||
- ../platform-agnostic | ||
|
||
# !!! If you want to customize the namespace, | ||
# please refer sample/cluster-scoped-resources to update the namespace for cluster-scoped-resources | ||
namespace: kubeflow | ||
|
||
patches: | ||
- patch: |- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ml-pipeline-ui | ||
namespace: kubeflow | ||
spec: | ||
ports: | ||
- $patch: replace | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 3000 | ||
nodePort: 30300 | ||
type: NodePort | ||
- patch: |- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mysql | ||
namespace: kubeflow | ||
spec: | ||
ports: | ||
- $patch: replace | ||
- port: 3306 | ||
protocol: TCP | ||
targetPort: 3306 | ||
nodePort: 30330 | ||
type: NodePort | ||
- patch: |- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: metadata-grpc-service | ||
namespace: kubeflow | ||
spec: | ||
ports: | ||
- $patch: replace | ||
- port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
nodePort: 30808 | ||
type: NodePort | ||
- patch: |- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: minio-service | ||
namespace: kubeflow | ||
spec: | ||
ports: | ||
- $patch: replace | ||
- port: 9000 | ||
protocol: TCP | ||
targetPort: 9000 | ||
nodePort: 30900 | ||
type: NodePort | ||
- patch: |- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ml-pipeline-visualizationserver | ||
namespace: kubeflow | ||
spec: | ||
ports: | ||
- $patch: replace | ||
- port: 8888 | ||
protocol: TCP | ||
targetPort: 8888 | ||
nodePort: 30889 | ||
type: NodePort | ||
- patch: |- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline | ||
namespace: kubeflow | ||
spec: | ||
replicas: 0 | ||
- patch: |- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline-ui | ||
namespace: kubeflow | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ml-pipeline-ui | ||
env: | ||
- name: ML_PIPELINE_SERVICE_HOST | ||
value: ml-pipeline | ||
- name: ML_PIPELINE_SERVICE_PORT | ||
value: "8888" | ||
- name: DISABLE_GKE_METADATA | ||
value: "true" | ||
- patch: |- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ml-pipeline | ||
namespace: kubeflow | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- $patch: replace | ||
- name: http | ||
port: 8888 | ||
protocol: TCP | ||
targetPort: 8888 | ||
- name: grpc | ||
port: 8887 | ||
protocol: TCP | ||
targetPort: 8887 | ||
selector: | ||
$patch: delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
# Expose the UI, MySQL, MLMD, Minio, and the visualization server | ||
extraPortMappings: | ||
- containerPort: 30300 | ||
hostPort: 3000 | ||
- containerPort: 30330 | ||
hostPort: 3306 | ||
- containerPort: 30808 | ||
hostPort: 8080 | ||
- containerPort: 30900 | ||
hostPort: 9000 | ||
- containerPort: 30889 | ||
hostPort: 8889 |