Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose sandbox node ports for Minio and Postgres #310

Merged
merged 3 commits into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions deployment/sandbox/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,22 @@ spec:
---
apiVersion: v1
kind: Service
metadata:
labels:
app: minio
name: minio-direct
namespace: flyte
spec:
ports:
- nodePort: 30084
port: 9000
protocol: TCP
selector:
app: minio
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: postgres
namespace: flyte
Expand All @@ -850,6 +866,22 @@ spec:
---
apiVersion: v1
kind: Service
metadata:
labels:
app: postgres
name: postgres-direct
namespace: flyte
spec:
ports:
- nodePort: 30083
port: 5432
protocol: TCP
selector:
app: postgres
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
labels:
app: redis-resource-manager
Expand Down
1 change: 0 additions & 1 deletion kustomize/base/admindeployment/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ spec:
protocol: TCP
port: 81
targetPort: 8089

1 change: 0 additions & 1 deletion kustomize/overlays/eks/datacatalog/datacatalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ kind: Service
metadata:
name: datacatalog
namespace: flyte

1 change: 0 additions & 1 deletion kustomize/overlays/eks/datacatalog/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ metadata:
namespace: flyte
spec:
type: NodePort

2 changes: 2 additions & 0 deletions kustomize/overlays/sandbox/dependencies/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bases:
- ../dependencies/service.yaml
35 changes: 35 additions & 0 deletions kustomize/overlays/sandbox/dependencies/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# For docker-desktop at least, the range of valid ports is 30000-32767, which is why we're constrained to these
# odd port numbers. Since the base ingress runs on 30081, the K8s dashboard runs on 30082, these just continue from there.
# These nodeports are exposed to save contributors the trouble of port forwarding when running locally.

apiVersion: v1
kind: Service
metadata:
labels:
app: postgres
name: postgres-direct
namespace: flyte
spec:
ports:
- nodePort: 30083
port: 5432
protocol: TCP
selector:
app: postgres
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
labels:
app: minio
name: minio-direct
namespace: flyte
spec:
ports:
- nodePort: 30084
port: 9000
protocol: TCP
selector:
app: minio
type: NodePort
3 changes: 3 additions & 0 deletions kustomize/overlays/sandbox/flyte/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ bases:
- ../../../base/adminserviceaccount
- ../propeller
- ../redis

# dependencies
- ../dependencies