When applying No_Proxy settings to the Supervisor cluster a customer with a large environment may want to add a CIDR block to the No_Proxy settings.
VKS with vSphere 8.0+
VKS with VCF 9.0+
The vSphere UI will only accept individual IP addresses or FQDN seperated by commas, a CIDR block will not be accepted therefore if the customer must use CIDR block notation the setting must be applied manually.
Recommended Values to add to NO_Proxy:
Load Balancer IP range from AVI IPAM, Management CIDR, Services CIDR.
CIDR block can be applied at three different scopes.
Inherited settings from vCenter:
# Example: NO_PROXY="www.example.domain, domain.main, localhost"
NO_PROXY="localhost, 127.0.0.1, 172.16.0.0/16"
Process also described on KB 370265 https://knowledge.broadcom.com/external/article/370265/how-to-configure-proxy-settings-for-vcen.html
cat /etc/containerd/containerd-environmentOutput should show newly set CIDR block after NO_PROXY=
cat /etc/containerd/containerd-environment
HTTP_PROXY=
HTTPS_PROXY=
NO_PROXY=" 127.0.0.1, 172.16.0.0/16, <supervisor_node_IP_Addresses>,docker-registry.kube-system.svc,localhost"
Apply Directly to Supervisor:
Apply to Guest Clusters:
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: tanzu-workload-cluster
namespace: tanzu-clusters
spec:
topology:
class: tanzu-standard-cluster-class # The ClusterClass name
version: v1.25.7+vmware.1
variables:
- name: proxy
value:
httpProxy: "http://proxy.internal:8080"
httpsProxy: "http://proxy.internal:8080"
noProxy: "localhost,127.0.0.1,.svc,.svc.cluster.local,10.96.0.0/12,192.168.0.0/16"apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentbit-logging
namespace: kube-system
spec:
selector:
matchLabels:
name: fluentbit
template:
metadata:
labels:
name: fluentbit
spec:
containers:
- name: fluentbit
image: fluent/fluent-bit:latest
env:
- name: HTTP_PROXY
value: "http://squid.proxy.corp:3128"
- name: HTTPS_PROXY
value: "http://squid.proxy.corp:3128"
- name: NO_PROXY
value: "localhost,127.0.0.1,kubernetes.default.svc,logging-svc.internal"
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 100Mi