Last Sunday afternoon was cloudy, not very crowded but nevertheless good weather.
To set a temporary namespace for k8s simply create an alias like so:
alias k='kubectl -n NAMESPACE '
Then use it:
k get pods
After the shell session ends it is set to default.
Nice visualization of the new infections by state: rt.live.
I wanted to enable a file upload. Whenever I was uploading I received the error code “413 Request Entity Too Large” from the nginx ingress controller in kubernetes.
I found the solution here.
Use the following annotation to allow unlimited upload size:
In my case, the ingress file definition now looks like this:
--- apiVersion: networking.k8s.io/v1beta1 # for versions before 1.14 use extensions/v1beta1 kind: Ingress metadata: name: my-name namespace: my-namespace annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 nginx.ingress.kubernetes.io/proxy-body-size: "0" spec: # The specs, omitted for readability