Skip to content

Commit

Permalink
kotsadm NodePort service for dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Dec 27, 2023
1 parent 1e04bad commit 8071e46
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 43 deletions.
2 changes: 0 additions & 2 deletions kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ spec:
ports:
- name: http
containerPort: 3000
- name: debug
containerPort: 9229
env:
- name: POD_NAMESPACE
valueFrom:
Expand Down
3 changes: 2 additions & 1 deletion kustomize/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ metadata:
annotations:
dev.okteto.com/auto-ingress: "true"
spec:
type: ClusterIP
type: NodePort
ports:
- name: http
port: 3000
targetPort: http
nodePort: 30000
selector:
app: kotsadm
4 changes: 0 additions & 4 deletions kustomize/overlays/dev/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ spec:
name: backup
- name: kubelet-client-cert
mountPath: /etc/kubernetes/pki/kubelet
ports:
- containerPort: 40000
name: dlv
protocol: TCP
env:
- name: KOTSADM_LOG_LEVEL
value: "debug"
Expand Down
15 changes: 0 additions & 15 deletions kustomize/overlays/dev/dlv-service.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions kustomize/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ bases:
- ../../../web/kustomize/overlays/dev
- ../../../kurl_proxy/kustomize/overlays/dev

resources:
- ./dlv-service.yaml

patchesStrategicMerge:
- ./deployment.yaml

Expand Down
16 changes: 0 additions & 16 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,8 @@ profiles:
path: /build/artifacts/1/docker/buildArgs
value:
DEBUG_KOTSADM: 1
- name: codespace
activation:
- env: USER=codespace
build:
local:
concurrency: 0
useBuildkit: true
push: true

build:
insecureRegistries:
- localhost:5000
- k3d-replicated-registry.localhost:5000

local:
concurrency: 0
useBuildkit: true
Expand Down Expand Up @@ -79,10 +67,6 @@ portForward:
resourceName: kotsadm
port: 3000
localPort: 30000
- resourceType: service
resourceName: kotsadm-dlv
port: 40000
localPort: 40000
- resourceType: service
resourceName: kurl-proxy
port: 8800
Expand Down
2 changes: 1 addition & 1 deletion web/okteto.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.3
FROM node:18-bookworm-slim as dev
EXPOSE 8080 9229
EXPOSE 8080

WORKDIR /src

Expand Down
2 changes: 1 addition & 1 deletion web/skaffold.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:18
EXPOSE 3000 9229
EXPOSE 3000

WORKDIR /src
COPY ./Makefile ./
Expand Down

0 comments on commit 8071e46

Please sign in to comment.