add ingress / headers for proxy-body-size #22
Member
- For example, this script is run as a cron job every minute in order for deployed apps to handle large photo uploads.
- In another case, headers are added manually for each deployment
1. For example, this script is run as a cron job every minute in order for deployed apps to handle large photo uploads.
```
$ cat ingress-patch/increase-proxy.sh
#!/bin/bash
# to avoid using kubie
export KUBECONFIG=/home/dev/.kube/config-default.yaml
kubectl config use-context vs-narwhal
LATEST=$(kubectl get ingress -A --sort-by=.metadata.creationTimestamp | tail -n 1)
echo "latest: $LATEST"
NAMESPACE=$(echo "$LATEST" | awk '{print $1}')
INGRESS=$(echo "$LATEST" | awk '{print $2}')
RESULT=$(kubectl patch ingress $INGRESS -n $NAMESPACE -p '{"metadata":{"annotations":{"nginx.ingress.kubernetes.io/proxy-body-size":"50m"}}}')
echo "result: $RESULT"
```
2. In another case, headers are added manually for each deployment
Labels
No Label
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/testnet-ops#22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?