Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.27 KB

development.md

File metadata and controls

39 lines (31 loc) · 1.27 KB

Development tips

Enabling SSL passthrough with nginx-ingress on minikube

In order to enable SSL-passthrough, you need to patch nginx controller.

This can be done with this snippet:

cat <<\EOF | kubectl patch deployment ingress-nginx-controller -n ingress-nginx --patch "$(cat -)"
---
spec:
  template:
    spec:
      containers:
      - name: controller
        args:
          - /nginx-ingress-controller
          - --configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf
          - --report-node-internal-ip-address
          - --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
          - --udp-services-configmap=$(POD_NAMESPACE)/udp-services
          - --validating-webhook=:8443
          - --validating-webhook-certificate=/usr/local/certificates/cert
          - --validating-webhook-key=/usr/local/certificates/key
          - --enable-ssl-passthrough

EOF

Go Language Server

If you're running into issues with things like "Go to definition" or "Find references", it could be because of this gopls bug. Try adding build flags to your editor config. Example for VSCode:

"gopls": {
    "build.buildFlags": ["-tags=e2e"],
}