Friedrich Ewald My Personal Website

Posts


  • Sunday Afternoon in the Bay Area

    Sunday Afternoon in the Bay Area with clouds Last Sunday afternoon was cloudy, not very crowded but nevertheless good weather.

  • Temporary Namespace for Kubernetes

    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.

  • Rt.live

    Nice visualization of the new infections by state: rt.live. Update 2022/05/10: The website is no longer active and I removed the link.

  • Apple's COVID Mobility Data

    Apple’s data has now been published as an R package. The visualizations for the linked blog post can be found in this repository.

  • 413 Request Entity Too Large in nginx k8s ingress

    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:

    nginx.ingress.kubernetes.io/proxy-body-size: "0"
    
    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
    

Page: 19 of 28