GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
319 stars 59 forks source link

IDEA cloud code use debug mode don't attach a remote debug #3143

Closed tinnkm closed 1 year ago

tinnkm commented 1 year ago

I use cloud code on kubernate to debug a java appliciton,can't not auto attach a remote debug window

Expected Behavior

can auto attach a remote debug window

Actual Behavior

the plugin is runing, but can't attach a debug

Additional Information

RUN mkdir -p /app/

WORKDIR /app

COPY deployment/start.sh /app/ COPY ./gateway-server/target/gateway-server-0.0.1-SNAPSHOT.jar /app/

RUN chmod 755 -R /app/

expose 8080

ENTRYPOINT ["/app/start.sh"]

- start.sh
```shell
#!/bin/sh

java -Xms128m -Xmx128m -jar /app/gateway-server-0.0.1-SNAPSHOT.jar --spring.profiles.active=test

if [ $? != 0 ]; then
  echo Failed to start java >&2
  exit 1

skaffold

apiVersion: skaffold/v4beta1
kind: Config
metadata:
  name: gateway
build:
  insecureRegistries:
    - harbor.devops.com
  artifacts:
  - image: harbor.devops.com/platform/gateway
    kaniko:
      dockerfile: Dockerfile
      skipTLS: true
      insecure: true
      insecurePull: true
      registryMirror: harbor.devops.com
      insecureRegistry:
        - harbor.devops.com
  cluster:
    namespace: kaniko
    dockerConfig:
      secretName: docker-cfg
manifests:
  rawYaml:
  - deployment/deployment-dev.yaml

debug log

Validating Kubernetes dependencies...
Validating image repository settings...
Validating Skaffold module settings...

C:\Users\huson\AppData\Local\cloud-code\bin\versions\8dc9b2c2dae666aa01b76becf5aa19e4312198cf72941b9c987e1467fd48ffc1\skaffold.exe debug --filename skaffold.yaml --label ide=cloudcodeintellij --cleanup=false --rpc-port 50052 --port-forward=true --wait-for-deletions-max=2m0s --status-check=true --module gateway --verbosity debug
starting gRPC server on port 50052
Skaffold &{Version:v2.1.0 ConfigVersion:skaffold/v4beta2 GitVersion: GitCommit:c037d6f51276e178a2c05c1c59665956ff34aa4c BuildDate:2023-01-23T09:59:23Z GoVersion:go1.19.1 Compiler:gc Platform:windows/amd64 User:}
Skipping update check for flag `--update-check` set to false
Loaded Skaffold defaults from "C:\\Users\\huson\\.skaffold\\config"
config version out of date: upgrading to latest "skaffold/v4beta2"
parsed 1 configs from configuration file C:\Users\huson\IdeaProjects\platform\gateway\skaffold.yaml
Found raw k8s manifests without cloud run deploy, adding kubectl deployer
map entry found when executing locate for &{harbor.devops.com/platform/gateway . <nil> {<nil> <nil> <nil> <nil> 0xc00073c820 <nil> <nil>} [] {[] []} [] } of type *latest.Artifact and pointer: 824647037616
Using kubectl context: kubernetes-admin@kubernetes
getting client config for kubeContext: `kubernetes-admin@kubernetes`
Running command: [minikube version --output=json]
Command output: [{"commit":"08896fd1dc362c097c925146c4a0d0dac715ace0","minikubeVersion":"v1.30.1"}
]
setting Docker user agent to skaffold-v2.1.0
no kpt renderer or deployer found, skipping hydrated-dir creation
Running command: [kubectl config view --minify -o jsonpath='{..namespace}']
Command output: ['']
Running command: [kubectl config view --minify -o jsonpath='{..namespace}']
Command output: ['']
Running command: [kubectl config view --minify -o jsonpath='{..namespace}']
Command output: ['']
Running command: [kubectl config view --minify -o jsonpath='{..namespace}']
Command output: ['']
Running command: [kubectl config view --minify -o jsonpath='{..namespace}']
Command output: ['']
Running command: [kubectl config view --minify -o jsonpath='{..namespace}']
Command output: ['']
Running command: [kubectl config view --minify -o jsonpath='{..namespace}']
Command output: ['']
CLI platforms provided: ""
getting client config for kubeContext: `kubernetes-admin@kubernetes`
platforms detected from active kubernetes cluster nodes: "linux/amd64,linux/arm64"
intersect matchers "linux/amd64,linux/arm64" and "windows/amd64", result ""
platforms selected for artifact "harbor.devops.com/platform/gateway": "linux/amd64"
Using builder: cluster
build concurrency first set to 0 parsed from *cluster.Builder[0]
final build concurrency value is 0
Generating tags...
 - harbor.devops.com/platform/gateway -> Running command: [git describe --tags --always]
Command output: [a929192
]
Running command: [git status . --porcelain]
Command output: [AM gateway/Dockerfile
AM gateway/deployment/deployment-dev.yaml
A  gateway/deployment/deployment.yaml
A  gateway/deployment/start.sh
R  gateway/gateway-server/src/main/resources/application.yml -> gateway/gateway-server/src/main/resources/application-dev.yml
AM gateway/gateway-server/src/main/resources/application-test.yml
A  gateway/skaffold.yaml
]
harbor.devops.com/platform/gateway:a929192-dirty
Tags generated in 434.5922ms
Checking cache...
Found dependencies for dockerfile: [{deployment\start.sh /app true 9 9} {gateway-server\target\gateway-server-0.0.1-SNAPSHOT.jar /app true 10 10}]
 - harbor.devops.com/platform/gateway: Not found. Building
Cache check completed in 5.495 seconds
Starting build...
Creating docker config secret [docker-cfg]...
getting client config for kubeContext: ``
No docker config specified. Checking for one in the cluster.
Building [harbor.devops.com/platform/gateway]...
Target platforms: [linux/amd64]
getting client config for kubeContext: ``
Waiting for kaniko-dtstl to be initialized
Running command: [kubectl --context kubernetes-admin@kubernetes exec -i kaniko-dtstl -c kaniko-init-container -n kaniko -- tar -xf - -C /kaniko/buildcontext]
Running command: [kubectl --context kubernetes-admin@kubernetes exec kaniko-dtstl -c kaniko-init-container -n kaniko -- touch /tmp/complete]
Command output: []
Waiting for kaniko-dtstl to be complete
unable to get kaniko pod logs:container "kaniko" in pod "kaniko-dtstl" is waiting to start: PodInitializing
unable to get kaniko pod logs:container "kaniko" in pod "kaniko-dtstl" is waiting to start: PodInitializing
INFO[0000] Retrieving image manifest openjdk:17         
INFO[0000] Retrieving image library/openjdk:17 from registry mirror harbor.devops.com 
INFO[0000] Built cross stage deps: map[]                
INFO[0000] Retrieving image manifest openjdk:17         
INFO[0000] Returning cached image manifest              
INFO[0000] Executing 0 build triggers                   
INFO[0000] Building stage 'openjdk:17' [idx: '0', base-idx: '-1'] 
INFO[0000] Unpacking rootfs as cmd RUN mkdir -p /app/ requires it. 
INFO[0016] RUN mkdir -p /app/                           
INFO[0016] Initializing snapshotter ...                 
INFO[0016] Taking snapshot of full filesystem...        
INFO[0018] Cmd: /bin/sh                                 
INFO[0018] Args: [-c mkdir -p /app/]                    
INFO[0018] Running: [/bin/sh -c mkdir -p /app/]         
INFO[0018] Taking snapshot of full filesystem...        
INFO[0018] WORKDIR /app                                 
INFO[0018] Cmd: workdir                                 
INFO[0018] Changed working directory to /app            
INFO[0018] No files changed in this command, skipping snapshotting. 
INFO[0018] COPY deployment/start.sh /app/               
INFO[0018] Taking snapshot of files...                  
INFO[0018] COPY ./gateway-server/target/gateway-server-0.0.1-SNAPSHOT.jar /app/ 
INFO[0018] Taking snapshot of files...                  
INFO[0019] RUN chmod 755 -R /app/                       
INFO[0019] Cmd: /bin/sh                                 
INFO[0019] Args: [-c chmod 755 -R /app/]                
INFO[0019] Running: [/bin/sh -c chmod 755 -R /app/]     
INFO[0019] Taking snapshot of full filesystem...        
INFO[0020] No files were changed, appending empty layer to config. No layer added to image. 
INFO[0020] expose 8080                                  
INFO[0020] Cmd: EXPOSE                                  
INFO[0020] Adding exposed port: 8080/tcp                
INFO[0020] ENTRYPOINT ["/app/start.sh"]                 
INFO[0020] Pushing image to harbor.devops.com/platform/gateway:a929192-dirty 
INFO[0025] Pushed harbor.devops.com/platform/gateway@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664 
retrieved image digest "sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664" from kaniko container status message
Build [harbor.devops.com/platform/gateway] succeeded
Build completed in 2 minutes 20.632 seconds
Starting render...
starting render process
Executing template &{envTemplate 0xc000bb8120 0xc0000aefa0  } with environment map[ALLUSERSPROFILE:C:\ProgramData ANDROID_SDK_HOME:C:\Android APPDATA:C:\Users\huson\AppData\Roaming CATALINA_BASE:C:\ProgramData\Tomcat9 CATALINA_HOME:C:\ProgramData\chocolatey\lib\Tomcat\tools\apache-tomcat-9.0.45 COMPUTERNAME:LAPTOP-KLVGDLCP ChocolateyInstall:C:\ProgramData\chocolatey ChocolateyLastPathUpdate:132759962588172256 ComSpec:C:\WINDOWS\system32\cmd.exe CommonProgramFiles:C:\Program Files\Common Files CommonProgramFiles(x86):C:\Program Files (x86)\Common Files CommonProgramW6432:C:\Program Files\Common Files DataGrip:C:\Program Files\JetBrains\DataGrip 2022.2.5\bin; DriverData:C:\Windows\System32\Drivers\DriverData GO_HOME:C:\Program Files\Go GRADLE_HOME:C:\Program Files\gradle-7.2 HOMEDRIVE:C: HOMEPATH:\Users\huson IDEA_INITIAL_DIRECTORY:C:\Users\huson\Desktop IntelliJ IDEA:C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.1\bin; JAVA_HOME:C:/Program Files/Java/jdk-17.0.2 LOCALAPPDATA:C:\Users\huson\AppData\Local LOGONSERVER:\\LAPTOP-KLVGDLCP M2_HOME:C:\ProgramData\chocolatey\lib-bkp\maven\apache-maven-3.8.2 MSBUILD_HOME:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild NUMBER_OF_PROCESSORS:16 NVM_HOME:C:\Users\huson\AppData\Roaming\nvm NVM_SYMLINK:C:\Program Files\nodejs OS:Windows_NT OneDrive:C:\Users\huson\OneDrive OneDriveConsumer:C:\Users\huson\OneDrive PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW POWERSHELL_DISTRIBUTION_CHANNEL:MSI:Windows 10 Pro for Workstations PROCESSOR_ARCHITECTURE:AMD64 PROCESSOR_IDENTIFIER:AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD PROCESSOR_LEVEL:23 PROCESSOR_REVISION:6001 PSModulePath:C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC:C:\Users\Public Path:C:\Users\huson\AppData\Local\cloud-code\bin\versions\8dc9b2c2dae666aa01b76becf5aa19e4312198cf72941b9c987e1467fd48ffc1;C:\Users\huson\AppData\Local\google\ct4j-cloud-sdk\LATEST\google-cloud-sdk\bin;C:\Program Files\Java\jdk1.8.0_301\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\telepresence;C:\Program Files\SSHFS-Win\bin;C:\Program Files\PowerShell\7;%MSBULID_HOME%;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE;C:\Python27;C:\Python310\Scripts\;C:\Python310\;C:\Program Files\Java\jdk-17.0.2\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Python39\Scripts\;C:\Python39\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\ProgramData\chocolatey\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.2\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Android;C:\Windows\System32;C:\Program Files\Pandoc\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Graphviz\bin;C:\Program Files\Git\cmd;C:\cygwin64\bin;C:\Users\huson\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\GitHub CLI\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;%MSBULID_HOME%\Current\Bin;C:\ProgramData\chocolatey\lib-bkp\maven\apache-maven-3.8.2\bin;C:\Program Files\Calibre2\;C:\Program Files\Go\bin;C:\Users\huson\AppData\Local\Microsoft\WindowsApps;C:\Users\huson\AppData\Local\GitHubDesktop\bin;C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.1\bin;C:\Program Files\JetBrains\WebStorm 2021.2.1\bin;C:\Users\huson\.dotnet\tools;C:\Program Files\JetBrains\PyCharm 2020.2.3\bin;C:\Users\huson\AppData\Roaming\npm;C:\Users\huson\AppData\Local\Coursier\data\bin;C:\Users\huson\.dotnet\tools;C:\Users\huson\go\bin;C:\Program Files\Docker\Docker\resources\bin;C:\skaffold;C:\Python310\Lib\site-packages;C:\Program Files\CMake\bin;C:\Program Files\PowerShell\7\;C:\Program Files\Go\bin;C:\Users\huson\scoop\shims;C:\Program Files\JetBrains\DataGrip 2022.2.5\bin;C:\Users\huson\AppData\Local\Programs\Microsoft VS Code\bin;%GoLand% Platform:x64 ProgramData:C:\ProgramData ProgramFiles:C:\Program Files ProgramFiles(x86):C:\Program Files (x86) ProgramW6432:C:\Program Files PyCharm:C:\Program Files\JetBrains\PyCharm 2020.2.3\bin; SKAFFOLD_FORCE_COLORS:true SKAFFOLD_INTERACTIVE:false SKAFFOLD_PROTOCOLS:pydevd,dlv,jdwp,nodejs SKAFFOLD_UPDATE_CHECK:false SKAFFOLD_USER:intellij SKAFFOLD_WAIT_FOR_CONNECTION:true SKAFFOLD_XXENABLEBUILDPACKINIT:true SKAFFOLD_XXENABLEBUILDPACKSINIT:true SKAFFOLD_XXENABLENEWINITFORMAT:true SystemDrive:C: SystemRoot:C:\WINDOWS TEMP:C:\Users\huson\AppData\Local\Temp TMP:C:\Users\huson\AppData\Local\Temp USERDOMAIN:LAPTOP-KLVGDLCP USERDOMAIN_ROAMINGPROFILE:LAPTOP-KLVGDLCP USERNAME:huson USERPROFILE:C:\Users\huson VCTargetsPath:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v150 WORKON_HOME:C:\python_env WXDRIVE_START_ARGS:--wxdrive-setting=0 --disable-gpu --disable-software-rasterizer --enable-features=NetworkServiceInProcess WebStorm:C:\Program Files\JetBrains\WebStorm 2021.2.1\bin; __COMPAT_LAYER:RunAsAdmin windir:C:\WINDOWS]
manifests with tagged images:apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: gateway
  name: gateway
  namespace: platform
spec:
  replicas: 1
  selector:
    matchLabels:
      app: gateway
  template:
    metadata:
      labels:
        app: gateway
    spec:
      containers:
      - env:
        - name: JAVA_TOOL_OPTIONS
          value: -agentlib:jdwp=transport=dt_socket,server=y,address=5005,suspend=n,quiet=y
        image: harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664
        imagePullPolicy: IfNotPresent
        name: gateway
        ports:
        - containerPort: 8080
      imagePullSecrets:
      - name: k8s-auth
---
apiVersion: v1
kind: Service
metadata:
  name: gateway
  namespace: platform
spec:
  ports:
  - port: 80
    protocol: TCP
    targetPort: 8080
  selector:
    app: gateway
  type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: gateway
  namespace: platform
spec:
  defaultBackend:
    service:
      name: gateway
      port:
        number: 80
  ingressClassName: nginx
  rules:
  - host: gateway.platform.com
manifests with labels apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: gateway
    ide: cloudcodeintellij
    skaffold.dev/run-id: ea290bfb-30d5-43ff-ae15-586f9b24ded0
  name: gateway
  namespace: platform
spec:
  replicas: 1
  selector:
    matchLabels:
      app: gateway
  template:
    metadata:
      labels:
        app: gateway
        ide: cloudcodeintellij
        skaffold.dev/run-id: ea290bfb-30d5-43ff-ae15-586f9b24ded0
    spec:
      containers:
      - env:
        - name: JAVA_TOOL_OPTIONS
          value: -agentlib:jdwp=transport=dt_socket,server=y,address=5005,suspend=n,quiet=y
        image: harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664
        imagePullPolicy: IfNotPresent
        name: gateway
        ports:
        - containerPort: 8080
      imagePullSecrets:
      - name: k8s-auth
---
apiVersion: v1
kind: Service
metadata:
  labels:
    ide: cloudcodeintellij
    skaffold.dev/run-id: ea290bfb-30d5-43ff-ae15-586f9b24ded0
  name: gateway
  namespace: platform
spec:
  ports:
  - port: 80
    protocol: TCP
    targetPort: 8080
  selector:
    app: gateway
  type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: gateway
  namespace: platform
spec:
  defaultBackend:
    service:
      name: gateway
      port:
        number: 80
  ingressClassName: nginx
  rules:
  - host: gateway.platform.com
manifests set with namespace apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: gateway
    ide: cloudcodeintellij
    skaffold.dev/run-id: ea290bfb-30d5-43ff-ae15-586f9b24ded0
  name: gateway
  namespace: platform
spec:
  replicas: 1
  selector:
    matchLabels:
      app: gateway
  template:
    metadata:
      labels:
        app: gateway
        ide: cloudcodeintellij
        skaffold.dev/run-id: ea290bfb-30d5-43ff-ae15-586f9b24ded0
    spec:
      containers:
      - env:
        - name: JAVA_TOOL_OPTIONS
          value: -agentlib:jdwp=transport=dt_socket,server=y,address=5005,suspend=n,quiet=y
        image: harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664
        imagePullPolicy: IfNotPresent
        name: gateway
        ports:
        - containerPort: 8080
      imagePullSecrets:
      - name: k8s-auth
---
apiVersion: v1
kind: Service
metadata:
  labels:
    ide: cloudcodeintellij
    skaffold.dev/run-id: ea290bfb-30d5-43ff-ae15-586f9b24ded0
  name: gateway
  namespace: platform
spec:
  ports:
  - port: 80
    protocol: TCP
    targetPort: 8080
  selector:
    app: gateway
  type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: gateway
  namespace: platform
spec:
  defaultBackend:
    service:
      name: gateway
      port:
        number: 80
  ingressClassName: nginx
  rules:
  - host: gateway.platform.com
Couldn't get target platforms for image "harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664": Get "https://harbor.devops.com/v2/": x509: certificate signed by unknown authority
Render completed in 1.368 second
Tags used in deployment:
 - harbor.devops.com/platform/gateway -> harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664
Starting deploy...
getting client config for kubeContext: `kubernetes-admin@kubernetes`
Found artifact for image "harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664"
Error retrieving image manifest for harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664: Get "https://harbor.devops.com/v2/": x509: certificate signed by unknown authority; Get "https://harbor.devops.com/v2": x509: certificate signed by unknown authority
skipping probe rewrite on "": not configured for debugging
no debug transformation for: service/gateway
no debug transformation for: ingress.networking.k8s.io/gateway
Running command: [kubectl --context kubernetes-admin@kubernetes get -f - --ignore-not-found -ojson]
Command output: [{
    "apiVersion": "v1",
    "items": [
        {
            "apiVersion": "apps/v1",
            "kind": "Deployment",
            "metadata": {
                "annotations": {
                    "deployment.kubernetes.io/revision": "6",
                    "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"gateway\",\"ide\":\"cloudcodeintellij\",\"skaffold.dev/run-id\":\"1ddf8a09-cf66-4f6c-beee-d4c8350f2a46\"},\"name\":\"gateway\",\"namespace\":\"platform\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"gateway\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"gateway\",\"ide\":\"cloudcodeintellij\",\"skaffold.dev/run-id\":\"1ddf8a09-cf66-4f6c-beee-d4c8350f2a46\"}},\"spec\":{\"containers\":[{\"env\":[{\"name\":\"JAVA_TOOL_OPTIONS\",\"value\":\"-agentlib:jdwp=transport=dt_socket,server=y,address=5005,suspend=n,quiet=y\"}],\"image\":\"harbor.devops.com/platform/gateway:a929192-dirty@sha256:b37598de4bf1766d3f4a4e25c4cb015986a74215291301380cb7ff026587a241\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"gateway\",\"ports\":[{\"containerPort\":8080}]}],\"imagePullSecrets\":[{\"name\":\"k8s-auth\"}]}}}}\n"
                },
                "creationTimestamp": "2023-06-16T07:28:52Z",
                "generation": 6,
                "labels": {
                    "app": "gateway",
                    "ide": "cloudcodeintellij",
                    "skaffold.dev/run-id": "1ddf8a09-cf66-4f6c-beee-d4c8350f2a46"
                },
                "name": "gateway",
                "namespace": "platform",
                "resourceVersion": "227983229",
                "uid": "61221fe2-79a9-4fbf-8ba3-043de5b2ce69"
            },
            "spec": {
                "progressDeadlineSeconds": 600,
                "replicas": 1,
                "revisionHistoryLimit": 10,
                "selector": {
                    "matchLabels": {
                        "app": "gateway"
                    }
                },
                "strategy": {
                    "rollingUpdate": {
                        "maxSurge": "25%",
                        "maxUnavailable": "25%"
                    },
                    "type": "RollingUpdate"
                },
                "template": {
                    "metadata": {
                        "creationTimestamp": null,
                        "labels": {
                            "app": "gateway",
                            "ide": "cloudcodeintellij",
                            "skaffold.dev/run-id": "1ddf8a09-cf66-4f6c-beee-d4c8350f2a46"
                        }
                    },
                    "spec": {
                        "containers": [
                            {
                                "env": [
                                    {
                                        "name": "JAVA_TOOL_OPTIONS",
                                        "value": "-agentlib:jdwp=transport=dt_socket,server=y,address=5005,suspend=n,quiet=y"
                                    }
                                ],
                                "image": "harbor.devops.com/platform/gateway:a929192-dirty@sha256:b37598de4bf1766d3f4a4e25c4cb015986a74215291301380cb7ff026587a241",
                                "imagePullPolicy": "IfNotPresent",
                                "name": "gateway",
                                "ports": [
                                    {
                                        "containerPort": 8080,
                                        "protocol": "TCP"
                                    }
                                ],
                                "resources": {},
                                "terminationMessagePath": "/dev/termination-log",
                                "terminationMessagePolicy": "File"
                            }
                        ],
                        "dnsPolicy": "ClusterFirst",
                        "imagePullSecrets": [
                            {
                                "name": "k8s-auth"
                            }
                        ],
                        "restartPolicy": "Always",
                        "schedulerName": "default-scheduler",
                        "securityContext": {},
                        "terminationGracePeriodSeconds": 30
                    }
                }
            },
            "status": {
                "availableReplicas": 1,
                "conditions": [
                    {
                        "lastTransitionTime": "2023-06-16T07:28:59Z",
                        "lastUpdateTime": "2023-06-16T07:28:59Z",
                        "message": "Deployment has minimum availability.",
                        "reason": "MinimumReplicasAvailable",
                        "status": "True",
                        "type": "Available"
                    },
                    {
                        "lastTransitionTime": "2023-06-16T07:28:52Z",
                        "lastUpdateTime": "2023-06-18T01:30:53Z",
                        "message": "ReplicaSet \"gateway-556fd75849\" has successfully progressed.",
                        "reason": "NewReplicaSetAvailable",
                        "status": "True",
                        "type": "Progressing"
                    }
                ],
                "observedGeneration": 6,
                "readyReplicas": 1,
                "replicas": 1,
                "updatedReplicas": 1
            }
        },
        {
            "apiVersion": "v1",
            "kind": "Service",
            "metadata": {
                "annotations": {
                    "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"labels\":{\"ide\":\"cloudcodeintellij\",\"skaffold.dev/run-id\":\"1ddf8a09-cf66-4f6c-beee-d4c8350f2a46\"},\"name\":\"gateway\",\"namespace\":\"platform\"},\"spec\":{\"ports\":[{\"port\":80,\"protocol\":\"TCP\",\"targetPort\":8080}],\"selector\":{\"app\":\"gateway\"},\"type\":\"ClusterIP\"}}\n"
                },
                "creationTimestamp": "2023-06-16T07:28:52Z",
                "labels": {
                    "ide": "cloudcodeintellij",
                    "skaffold.dev/run-id": "1ddf8a09-cf66-4f6c-beee-d4c8350f2a46"
                },
                "name": "gateway",
                "namespace": "platform",
                "resourceVersion": "227983179",
                "uid": "9f0f7eca-50d8-4158-98fd-dbd4972db2c7"
            },
            "spec": {
                "clusterIP": "10.96.22.246",
                "clusterIPs": [
                    "10.96.22.246"
                ],
                "internalTrafficPolicy": "Cluster",
                "ipFamilies": [
                    "IPv4"
                ],
                "ipFamilyPolicy": "SingleStack",
                "ports": [
                    {
                        "port": 80,
                        "protocol": "TCP",
                        "targetPort": 8080
                    }
                ],
                "selector": {
                    "app": "gateway"
                },
                "sessionAffinity": "None",
                "type": "ClusterIP"
            },
            "status": {
                "loadBalancer": {}
            }
        },
        {
            "apiVersion": "networking.k8s.io/v1",
            "kind": "Ingress",
            "metadata": {
                "annotations": {
                    "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"networking.k8s.io/v1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{},\"name\":\"gateway\",\"namespace\":\"platform\"},\"spec\":{\"defaultBackend\":{\"service\":{\"name\":\"gateway\",\"port\":{\"number\":80}}},\"ingressClassName\":\"nginx\",\"rules\":[{\"host\":\"gateway.platform.com\"}]}}\n"
                },
                "creationTimestamp": "2023-06-16T07:28:53Z",
                "generation": 1,
                "name": "gateway",
                "namespace": "platform",
                "resourceVersion": "226408672",
                "uid": "65107628-714d-412b-8011-a87b0d347b37"
            },
            "spec": {
                "defaultBackend": {
                    "service": {
                        "name": "gateway",
                        "port": {
                            "number": 80
                        }
                    }
                },
                "ingressClassName": "nginx",
                "rules": [
                    {
                        "host": "gateway.platform.com"
                    }
                ]
            },
            "status": {
                "loadBalancer": {
                    "ingress": [
                        {
                            "ip": "10.0.5.205"
                        }
                    ]
                }
            }
        }
    ],
    "kind": "List",
    "metadata": {
        "resourceVersion": "",
        "selfLink": ""
    }
}
]
3 manifests to deploy. 3 are updated or new
Running command: [kubectl --context kubernetes-admin@kubernetes apply -f -]
 - deployment.apps/gateway configured
 - service/gateway configured
 - ingress.networking.k8s.io/gateway unchanged
Waiting for deployments to stabilize...
getting client config for kubeContext: `kubernetes-admin@kubernetes`
getting client config for kubeContext: `kubernetes-admin@kubernetes`
checking status platform:deployment/gateway
Running command: [kubectl --context kubernetes-admin@kubernetes rollout status deployment gateway --namespace platform --watch=false]
Command output: [Waiting for deployment "gateway" rollout to finish: 1 old replicas are pending termination...
]
 - platform:deployment/gateway: waiting for rollout to finish: 1 old replicas are pending termination...
Pod "gateway-5f8d95dcf5-2cxjn" scheduled but not ready: checking container statuses
 - platform:pod/gateway-5f8d95dcf5-2cxjn: creating container gateway
Running command: [kubectl --context kubernetes-admin@kubernetes rollout status deployment gateway --namespace platform --watch=false]
 - platform:deployment/gateway: creating container gateway
    - platform:pod/gateway-5f8d95dcf5-2cxjn: creating container gateway
Command output: [deployment "gateway" successfully rolled out
]
 - platform:pod/gateway-5f8d95dcf5-2cxjn: running.
 - platform:deployment/gateway is ready.
Deployments stabilized in 10.778 seconds
Deploy completed in 12.128 seconds
getting client config for kubeContext: `kubernetes-admin@kubernetes`
found open port: 4503
getting client config for kubeContext: `kubernetes-admin@kubernetes`
Forwarding service gateway/80 to pod gateway-5f8d95dcf5-2cxjn/8080
Running command: [kubectl --context kubernetes-admin@kubernetes port-forward --pod-running-timeout 1s --namespace platform pod/gateway-5f8d95dcf5-2cxjn 4503:8080]
Port forwarding service/gateway in namespace platform, remote port 80 -> http://127.0.0.1:4503
getting client config for kubeContext: `kubernetes-admin@kubernetes`
getting client config for kubeContext: `kubernetes-admin@kubernetes`
getting client config for kubeContext: `kubernetes-admin@kubernetes`
getting client config for kubeContext: `kubernetes-admin@kubernetes`
Listing files to watch...
 - harbor.devops.com/platform/gateway
List generated in 1.0549ms
Press Ctrl+C to exit
Streaming logs from pod: gateway-5f8d95dcf5-2cxjn container: gateway
Change detected<nil>
Not watching for changes...
Running command: [kubectl --context kubernetes-admin@kubernetes logs --since=26s -f gateway-5f8d95dcf5-2cxjn -c gateway --namespace platform]
getting client config for kubeContext: `kubernetes-admin@kubernetes`
Found dependencies for dockerfile: [{deployment\start.sh /app true 9 9} {gateway-server\target\gateway-server-0.0.1-SNAPSHOT.jar /app true 10 10}]
[gateway] Picked up JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,server=y,address=5005,suspend=n,quiet=y
[gateway] SLF4J: Class path contains multiple SLF4J providers.
[gateway] SLF4J: Found provider [ch.qos.logback.classic.spi.LogbackServiceProvider@61e4705b]
[gateway] SLF4J: Found provider [org.slf4j.simple.SimpleServiceProvider@50134894]
[gateway] SLF4J: See https://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[gateway] SLF4J: Actual provider is of type [ch.qos.logback.classic.spi.LogbackServiceProvider@61e4705b]
[gateway] 2023-06-18T01:42:18.872Z  WARN 6 --- [           main] c.a.nacos.client.logging.NacosLogging    : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
[gateway] 
[gateway]   .   ____          _            __ _ _
[gateway]  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
[gateway] ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
[gateway]  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
[gateway]   '  |____| .__|_| |_|_| |_\__, | / / / /
[gateway]  =========|_|==============|___/=/_/_/_/
[gateway]  :: Spring Boot ::                (v3.0.6)
[gateway] 
[gateway] 2023-06-18T01:42:18.947Z  WARN 6 --- [           main] c.a.nacos.client.logging.NacosLogging    : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml
[gateway] 2023-06-18T01:42:18.953Z  INFO 6 --- [           main] c.i.platform.gateway.GatewayApplication  : Starting GatewayApplication v0.0.1-SNAPSHOT using Java 17.0.1 with PID 6 (/app/gateway-server-0.0.1-SNAPSHOT.jar started by root in /app)
[gateway] 2023-06-18T01:42:18.954Z  INFO 6 --- [           main] c.i.platform.gateway.GatewayApplication  : The following 1 profile is active: "test"
[gateway] 2023-06-18T01:42:19.006Z  WARN 6 --- [           main] c.a.c.n.c.NacosConfigDataLoader          : [Nacos Config] config[dataId=gateway.yaml, group=PLATFORM] is empty
[gateway] 2023-06-18T01:42:20.612Z  INFO 6 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=fa63847b-e1f7-37e0-8337-57984aa1df52
[gateway] 2023-06-18T01:42:20.760Z  INFO 6 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[gateway] 2023-06-18T01:42:20.762Z  INFO 6 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[gateway] 2023-06-18T01:42:20.763Z  INFO 6 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'reactorDeferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[gateway] 2023-06-18T01:42:21.052Z  INFO 6 --- [           main] c.a.nacos.client.config.utils.JvmUtil    : isMultiInstance:false
[gateway] 2023-06-18T01:42:21.056Z  INFO 6 --- [           main] c.a.nacos.client.config.impl.CacheData   : nacos.cache.data.init.snapshot = true 
[gateway] 2023-06-18T01:42:21.057Z  INFO 6 --- [           main] c.a.n.client.config.impl.ClientWorker    : [fixed-platform-test-nacos-hs.paas_8848] [subscribe] gateway+PLATFORM+platform-test
[gateway] 2023-06-18T01:42:21.067Z  INFO 6 --- [           main] c.a.nacos.client.config.impl.CacheData   : [fixed-platform-test-nacos-hs.paas_8848] [add-listener] ok, tenant=platform-test, dataId=gateway, group=PLATFORM, cnt=1
[gateway] 2023-06-18T01:42:21.457Z  WARN 6 --- [           main] jakarta.persistence.spi                  : jakarta.persistence.spi::No valid providers found.
[gateway] 2023-06-18T01:42:22.158Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [After]
[gateway] 2023-06-18T01:42:22.158Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Before]
[gateway] 2023-06-18T01:42:22.158Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Between]
[gateway] 2023-06-18T01:42:22.158Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Cookie]
[gateway] 2023-06-18T01:42:22.158Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Header]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Host]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Method]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Path]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Query]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [ReadBody]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [RemoteAddr]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [XForwardedRemoteAddr]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [Weight]
[gateway] 2023-06-18T01:42:22.159Z  INFO 6 --- [           main] o.s.c.g.r.RouteDefinitionRouteLocator    : Loaded RoutePredicateFactory [CloudFoundryRouteService]
[gateway] 2023-06-18T01:42:22.419Z  INFO 6 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 19 endpoint(s) beneath base path '/actuator'
[gateway] 2023-06-18T01:42:22.604Z  WARN 6 --- [           main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath.
[gateway] 2023-06-18T01:42:22.781Z  INFO 6 --- [           main] o.s.b.web.embedded.netty.NettyWebServer  : Netty started on port 8080
[gateway] 2023-06-18T01:42:22.788Z  INFO 6 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from ans.namespace attribute : null
[gateway] 2023-06-18T01:42:22.788Z  INFO 6 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from ALIBABA_ALIWARE_NAMESPACE attribute :null
[gateway] 2023-06-18T01:42:22.789Z  INFO 6 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from namespace attribute :null
[gateway] 2023-06-18T01:42:22.797Z  INFO 6 --- [           main] c.a.n.p.a.s.c.ClientAuthPluginManager    : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
[gateway] 2023-06-18T01:42:22.797Z  INFO 6 --- [           main] c.a.n.p.a.s.c.ClientAuthPluginManager    : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
[gateway] 2023-06-18T01:42:22.801Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [RpcClientFactory] create a new rpc client of 6341170b-07fb-4fca-9b1f-dafbc696119d
[gateway] 2023-06-18T01:42:22.802Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] RpcClient init, ServerListFactory = com.alibaba.nacos.client.naming.core.ServerListManager
[gateway] 2023-06-18T01:42:22.802Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.redo.NamingGrpcRedoService
[gateway] 2023-06-18T01:42:22.803Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler
[gateway] 2023-06-18T01:42:22.803Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] Try to connect to server on start up, server: {serverIp = 'nacos-hs.paas', server main port = 8848}
[gateway] 2023-06-18T01:42:22.804Z  INFO 6 --- [           main] c.a.n.c.remote.client.grpc.GrpcClient    : grpc client connection server:nacos-hs.paas ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false}
[gateway] 2023-06-18T01:42:22.923Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] Success to connect to server [nacos-hs.paas:8848] on start up, connectionId = 1687052542813_192.168.166.150_50486
[gateway] 2023-06-18T01:42:22.923Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
[gateway] 2023-06-18T01:42:22.923Z  INFO 6 --- [           main] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$275/0x0000000800f441a8
[gateway] 2023-06-18T01:42:22.923Z  INFO 6 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [6341170b-07fb-4fca-9b1f-dafbc696119d] Notify connected event to listeners.
[gateway] 2023-06-18T01:42:22.923Z  INFO 6 --- [t.remote.worker] com.alibaba.nacos.client.naming          : Grpc connection connect
[gateway] 2023-06-18T01:42:22.924Z  INFO 6 --- [           main] com.alibaba.nacos.client.naming          : [REGISTER-SERVICE] platform-test registering service gateway with instance Instance{instanceId='null', ip='192.168.166.150', port=8080, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='DEFAULT', serviceName='null', metadata={IPv6=null, preserved.register.source=SPRING_CLOUD}}
[gateway] 2023-06-18T01:42:22.934Z  INFO 6 --- [           main] c.a.c.n.registry.NacosServiceRegistry    : nacos registry, PLATFORM gateway 192.168.166.150:8080 register finished
[gateway] 2023-06-18T01:42:23.018Z  INFO 6 --- [           main] c.i.platform.gateway.GatewayApplication  : Started GatewayApplication in 6.183 seconds (process running for 6.854)
[gateway] 2023-06-18T01:42:23.022Z  INFO 6 --- [           main] c.a.n.client.config.impl.ClientWorker    : [fixed-platform-test-nacos-hs.paas_8848] [subscribe] gateway.yaml+PLATFORM+platform-test
[gateway] 2023-06-18T01:42:23.023Z  INFO 6 --- [           main] c.a.nacos.client.config.impl.CacheData   : [fixed-platform-test-nacos-hs.paas_8848] [add-listener] ok, tenant=platform-test, dataId=gateway.yaml, group=PLATFORM, cnt=1
[gateway] 2023-06-18T01:42:23.023Z  INFO 6 --- [           main] c.a.c.n.refresh.NacosContextRefresher    : [Nacos Config] Listening config: dataId=gateway.yaml, group=PLATFORM
anthonyalayo commented 1 year ago

I'm encountering the same issue with the latest version of Intellij Ultimate. Previously I had no issues running in debug mode. Port 5005 would be set up with the JVM, it would attach to the IDE, and it would hit breakpoints that are set.

Some things I noticed:

  1. My IDE is complaining about the runtimeType field even though it's definitely right per the latest skaffold docs:
image
  1. Even though my runtimeType is specified as jvm, the plugin is attempting to install python debug support:
    ...waiting for init container install-python-debug-support to start
ivanporty commented 1 year ago

Thank you for the report! We are reproducing and checking the scenarios you described and we'll get back with the results as soon as we are done.

ivanporty commented 1 year ago

@tinnkm @anthonyalayo we are still investigating, in the meanwhile, could you please try using the latest version of skaffold (https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.5.1) using custom dependencies - you need to go to Settings/Preferences > Tools > Google Cloud Code > Dependencies and use custom dependencies for this test, skaffold and any kubectl you have on your system.

Another question: are you using the latest Cloud Code version (23.5.2)?

Let us know if this fixes/changes the problem for you, thank you.

anthonyalayo commented 1 year ago

@ivanporty

I tried using the latest skaffold, and the latest plugin, both didn't work on Intellij 2023.X. The only thing that worked was to switch to IntelliJ 2022.3.X release. Now I'm currently using that as a workaround.

ivanporty commented 1 year ago

@ivanporty

I tried using the latest skaffold, and the latest plugin, both didn't work on Intellij 2023.X. The only thing that worked was to switch to IntelliJ 2022.3.X release. Now I'm currently using that as a workaround.

@anthonyalayo could you please get us your IDE logs (Help -> Show Log In ...), idea.log, for the IDE / plugin combination that doesn't work? Thank you!

ivanporty commented 1 year ago

@tinnkm We see this in your logs, it looks like skaffold is having issues accessing the image and preparing it for debug, are you sure Cloud Code / your system is fully authenticated?

Error retrieving image manifest for harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664: Get "https://harbor.devops.com/v2/": x509: certificate signed by unknown authority; Get "https://harbor.devops.com/v2": x509: certificate signed by unknown authority
skipping probe rewrite on "": not configured for debugging
no debug transformation for: service/gateway
no debug transformation for: ingress.networking.k8s.io/gateway
tinnkm commented 1 year ago

@ivanporty Cloud Code version is 23.5.2-222,and i alse saw the issues. I configured insecureRegistries and insecure in my skaffold.yaml, but it doesn't seem to work. And strangely, although the x509 error is reported, my application can still be deployed to kubenates normally,And, my harbor can query the image of this build。 image image image

Reference in

tinnkm commented 1 year ago

@ivanporty I found that this problem is caused by my harbor. When using http to access harbor, it will be forced to jump to https, so it causes x509 error. I set nginx.ingress.kubernetes.io/ssl-redirect: 'false' and ingress. kubernetes.io/ssl-redirect: 'false', it can be debug normally