Documentation ¶
Index ¶
Constants ¶
View Source
const KubeFireWallChain = ipt.Chain("KUBE-FIREWALL")
KubeFireWallChain is the kubernetes firewall chain.
View Source
const KubeForwardChain = ipt.Chain("KUBE-FORWARD")
KubeForwardChain is the kubernetes forward chain.
View Source
const KubeLoadBalancerChain = ipt.Chain("KUBE-LOAD-BALANCER")
KubeLoadBalancerChain is the kubernetes chain for loadbalancer type service.
View Source
const KubeMarkDropChain = ipt.Chain("KUBE-MARK-DROP")
KubeMarkDropChain is the mark-for-drop chain.
View Source
const KubeMarkMasqChain = ipt.Chain("KUBE-MARK-MASQ")
KubeMarkMasqChain is the mark-for-masquerade chain.
View Source
const KubeNodePortChain = ipt.Chain("KUBE-NODE-PORT")
KubeNodePortChain is the kubernetes node port chain.
Variables ¶
View Source
var ( // IPVS ipvs sink flags BackendFlags = &pflag.FlagSet{} DryRun = BackendFlags.Bool("dry-run", false, "dry run (print instead of applying)") NodeAddresses = BackendFlags.StringArray("node-address", interfaceAddresses(), "A comma-separated list of IPs to associate when using NodePort type. Defaults to all the Node addresses") IPVSSchedulingMethod = BackendFlags.String("scheduling-method", "rr", "Algorithm for allocating TCP conn & UDP datagrams to real servers. Values: rr,wrr,lc,wlc,lblc,lblcr,dh,sh,seq,nq") IPVSDestinationWeight = BackendFlags.Int32("weight", 1, "An integer specifying the capacity of server relative to others in the pool") // MasqueradeAll // flags.Int32Var(s.masqueradeBit, "iptables-masquerade-bit", Int32PtrDerefOr(s.masqueradeBit, 14), "If using the pure iptables proxy, the bit of the fwmark space to mark packets requiring SNAT with. Must be within the range [0, 31].") MasqueradeAll = BackendFlags.Bool("masquerade-all", false, "If using the pure iptables proxy, SNAT all traffic sent via Service cluster IPs (this not commonly needed)") )
Functions ¶
func GetFilterRules ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller handles the callbacks
func (*Controller) Callback ¶
func (c *Controller) Callback(ch <-chan *client.ServiceEndpoints)
func (*Controller) ServeProxyMode ¶
func (c *Controller) ServeProxyMode(errCh chan error)
ServeProxyMode runs a HTTP listener for proxyMode detection.
func (*Controller) SetUpHttpListen ¶
func (c *Controller) SetUpHttpListen() error
type ServiceType ¶
type ServiceType string
const ( ClusterIPService ServiceType = "ClusterIP" NodePortService ServiceType = "NodePort" LoadBalancerService ServiceType = "LoadBalancer" )
func (ServiceType) String ¶
func (st ServiceType) String() string
String returns ServiceType as string.
type SessionAffinity ¶
type SessionAffinity struct {
ClientIP *localv1.Service_ClientIP
}
SessionAffinity contains data about assigned session affinity.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.