- Click on settings




lets you dynamically run Lua code from Kong, before other plugins in each phase.
for eg. removing the header if it is blank.
local k_request = kong.request.get_header("Content-Type")
if k_request and (k_request == "application/json") then
local check_head = kong.request.get_raw_body()
if (not check_head) or (check_head == "") then
kong.service.request.clear_header("Content-Type")
end
end
Local netowork(LAN1): 192.168.0.1

OpenVPN setting:
Local Network: 192.168.0.0/24
IP pool : 192.168.3.0/24

I can now SSH from OpenVPN client to 192.168.0.183
openvpn --config VPN_Default_2024-11-17-11-19-59.ovpn
Get full jenkins job name :
Jenkins.instance.getAllItems(AbstractItem.class).each {
println(it.fullName)
};
Kill: Jenkins job which is stuck
Jenkins.instance
.getItemByFullName(“Tenerity-Platform/BizOps/apg-chargeback”)
.getBranch(“develop”)
.getBuildByNumber(716)
.finish(hudson.model.Result.ABORTED, new java.io.IOException(“Aborting build”));
namespace level metrics
CPU:
sum by (namespace) (container_cpu_allocation)
Memory:
sum by (namespace) (container_memory_allocation_bytes/1024/1024)
kubectl custom query to get cpu , memory request and limit
kubectl get deploy -A -o=custom-columns='Namespace:.metadata.namespace,Name:.metadata.name,Request_CPU:.spec.template.spec.containers[0].resources.requests.cpu,Limit_CPU:.spec.template.spec.containers[0].resources.limits.cpu,Request_Memory:.spec.template.spec.containers[0].resources.requests.memory,Limit_Memory:.spec.template.spec.containers[0].resources.limits.memory' | sed 1d | tr -s '[:blank:]' ','
kubect replace variabe
deployments=$(kubectl get deploy | awk '{print $1}' | sed 1d)
for deploy in $deployments
do
deploy_raw_yml=$(kubectl get deploy $deploy -o yaml)
kubectl get deploy $deploy -o yaml > _tmp_store.yml
value_to_be_replaced=$(kubectl get deploy $deploy -o yaml | grep -A 1 'NEW_RELIC_APP_NAME' | grep value | awk -F 'value: ' '{print $2}')
echo "value_to_be_replaced: $value_to_be_replaced"
if [[ $value_to_be_replaced == "" ]]; then
echo "=====================$deploy no change =========================="
else
replaced_value=$(echo $value_to_be_replaced | sed 's/stage/perf/g')
echo "replaced_value: $replaced_value"
cat _tmp_store.yml| sed "s/$value_to_be_replaced/$replaced_value/g" | kubectl apply -f -
echo "=====================$deploy done =========================="
fi
done
| Seed | Benefits |
|---|---|
| Flax Seeds | Rich in omega-3 fatty acids, fiber, and lignans; supports heart health, aids digestion, may reduce cholesterol. |
| Chia Seeds | High in fiber, protein, omega-3s, and antioxidants; promotes hydration, aids weight loss, supports bone health. |
| Sesame Seeds | Good source of calcium, iron, magnesium, and healthy fats; supports bone health, may lower cholesterol levels. |
| Sunflower Seeds | Rich in vitamin E, magnesium, selenium, and protein; boosts heart health, supports skin health, aids in mood regulation. |
| Watermelon Seeds | Contains protein, healthy fats, vitamins, and minerals; supports heart health, aids digestion, may boost immunity. |
| Pumpkin Seeds | High in antioxidants, magnesium, zinc, and fiber; supports prostate health, boosts immunity, help sleep. |
| Halim Seeds | Rich in Iron, protein, fiber, vitamins, and minerals; aids digestion, promotes weight loss, supports heart health. |