mirror of https://github.com/kubernetes/kops.git
Add cilium option tofqdns-dns-reject-response-code
This commit is contained in:
parent
51e8563bd5
commit
49b18cd3f7
|
@ -2917,6 +2917,11 @@ spec:
|
|||
description: StateDir is not implemented and may be removed
|
||||
in the future. Setting this has no effect.
|
||||
type: string
|
||||
toFqdnsDnsRejectResponseCode:
|
||||
description: 'ToFqdnsDNSRejectResponseCode sets the DNS response
|
||||
code for rejecting DNS requests. Possible values are "nameError"
|
||||
or "refused". Default: refused'
|
||||
type: string
|
||||
toFqdnsEnablePoller:
|
||||
description: 'ToFqdnsEnablePoller replaces the DNS proxy-based
|
||||
implementation of FQDN policies with the less powerful legacy
|
||||
|
|
|
@ -376,6 +376,10 @@ type CiliumNetworkingSpec struct {
|
|||
SidecarIstioProxyImage string `json:"sidecarIstioProxyImage"`
|
||||
// ClusterName is the name of the cluster. It is only relevant when building a mesh of clusters.
|
||||
ClusterName string `json:"clusterName"`
|
||||
// ToFqdnsDNSRejectResponseCode sets the DNS response code for rejecting DNS requests.
|
||||
// Possible values are "nameError" or "refused".
|
||||
// Default: refused
|
||||
ToFqdnsDNSRejectResponseCode string `json:"toFqdnsDnsRejectResponseCode,omitempty"`
|
||||
// ToFqdnsEnablePoller replaces the DNS proxy-based implementation of FQDN policies
|
||||
// with the less powerful legacy implementation.
|
||||
// Default: false
|
||||
|
|
|
@ -374,6 +374,10 @@ type CiliumNetworkingSpec struct {
|
|||
SidecarIstioProxyImage string `json:"sidecarIstioProxyImage"`
|
||||
// ClusterName is the name of the cluster. It is only relevant when building a mesh of clusters.
|
||||
ClusterName string `json:"clusterName"`
|
||||
// ToFqdnsDNSRejectResponseCode sets the DNS response code for rejecting DNS requests.
|
||||
// Possible values are "nameError" or "refused".
|
||||
// Default: refused
|
||||
ToFqdnsDNSRejectResponseCode string `json:"toFqdnsDnsRejectResponseCode,omitempty"`
|
||||
// ToFqdnsEnablePoller replaces the DNS proxy-based implementation of FQDN policies
|
||||
// with the less powerful legacy implementation.
|
||||
// Default: false
|
||||
|
|
|
@ -1328,6 +1328,7 @@ func autoConvert_v1alpha1_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *
|
|||
out.PreallocateBPFMaps = in.PreallocateBPFMaps
|
||||
out.SidecarIstioProxyImage = in.SidecarIstioProxyImage
|
||||
out.ClusterName = in.ClusterName
|
||||
out.ToFqdnsDNSRejectResponseCode = in.ToFqdnsDNSRejectResponseCode
|
||||
out.ToFqdnsEnablePoller = in.ToFqdnsEnablePoller
|
||||
out.ContainerRuntimeLabels = in.ContainerRuntimeLabels
|
||||
out.Ipam = in.Ipam
|
||||
|
@ -1409,6 +1410,7 @@ func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha1_CiliumNetworkingSpec(in *
|
|||
out.PreallocateBPFMaps = in.PreallocateBPFMaps
|
||||
out.SidecarIstioProxyImage = in.SidecarIstioProxyImage
|
||||
out.ClusterName = in.ClusterName
|
||||
out.ToFqdnsDNSRejectResponseCode = in.ToFqdnsDNSRejectResponseCode
|
||||
out.ToFqdnsEnablePoller = in.ToFqdnsEnablePoller
|
||||
out.ContainerRuntimeLabels = in.ContainerRuntimeLabels
|
||||
out.Ipam = in.Ipam
|
||||
|
|
|
@ -374,6 +374,10 @@ type CiliumNetworkingSpec struct {
|
|||
SidecarIstioProxyImage string `json:"sidecarIstioProxyImage"`
|
||||
// ClusterName is the name of the cluster. It is only relevant when building a mesh of clusters.
|
||||
ClusterName string `json:"clusterName"`
|
||||
// ToFqdnsDNSRejectResponseCode sets the DNS response code for rejecting DNS requests.
|
||||
// Possible values are "nameError" or "refused".
|
||||
// Default: refused
|
||||
ToFqdnsDNSRejectResponseCode string `json:"toFqdnsDnsRejectResponseCode,omitempty"`
|
||||
// ToFqdnsEnablePoller replaces the DNS proxy-based implementation of FQDN policies
|
||||
// with the less powerful legacy implementation.
|
||||
// Default: false
|
||||
|
|
|
@ -1370,6 +1370,7 @@ func autoConvert_v1alpha2_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *
|
|||
out.PreallocateBPFMaps = in.PreallocateBPFMaps
|
||||
out.SidecarIstioProxyImage = in.SidecarIstioProxyImage
|
||||
out.ClusterName = in.ClusterName
|
||||
out.ToFqdnsDNSRejectResponseCode = in.ToFqdnsDNSRejectResponseCode
|
||||
out.ToFqdnsEnablePoller = in.ToFqdnsEnablePoller
|
||||
out.ContainerRuntimeLabels = in.ContainerRuntimeLabels
|
||||
out.Ipam = in.Ipam
|
||||
|
@ -1451,6 +1452,7 @@ func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha2_CiliumNetworkingSpec(in *
|
|||
out.PreallocateBPFMaps = in.PreallocateBPFMaps
|
||||
out.SidecarIstioProxyImage = in.SidecarIstioProxyImage
|
||||
out.ClusterName = in.ClusterName
|
||||
out.ToFqdnsDNSRejectResponseCode = in.ToFqdnsDNSRejectResponseCode
|
||||
out.ToFqdnsEnablePoller = in.ToFqdnsEnablePoller
|
||||
out.ContainerRuntimeLabels = in.ContainerRuntimeLabels
|
||||
out.Ipam = in.Ipam
|
||||
|
|
|
@ -98,6 +98,9 @@ data:
|
|||
# Name of the cluster. Only relevant when building a mesh of clusters.
|
||||
cluster-name: "{{- if eq .ClusterName "" -}}default{{- else -}}{{ .ClusterName}}{{- end -}}"
|
||||
|
||||
# DNS response code for rejecting DNS requests,
|
||||
# available options are "nameError" and "refused"
|
||||
tofqdns-dns-reject-response-code: "{{- if eq .ToFqdnsDNSRejectResponseCode "" -}}refused{{- else -}}{{ .ToFqdnsDNSRejectResponseCode }}{{- end -}}"
|
||||
# This option is disabled by default starting from version 1.4.x in favor
|
||||
# of a more powerful DNS proxy-based implementation, see [0] for details.
|
||||
# Enable this option if you want to use FQDN policies but do not want to use
|
||||
|
|
Loading…
Reference in New Issue