mirror of https://github.com/kubernetes/kops.git
Merge pull request #15901 from zadjadr/feature/cilium-nodeencryption
Cilium: Implement node encryption
This commit is contained in:
commit
0a0f938d91
|
@ -5175,6 +5175,10 @@ spec:
|
|||
nat46Range:
|
||||
description: Nat46Range is unused.
|
||||
type: string
|
||||
nodeEncryption:
|
||||
description: 'NodeEncryption enables encryption for pure node
|
||||
to node traffic. Default: false'
|
||||
type: boolean
|
||||
nodeInitBootstrapFile:
|
||||
description: NodeInitBootstrapFile is unused.
|
||||
type: string
|
||||
|
|
|
@ -382,6 +382,9 @@ type CiliumNetworkingSpec struct {
|
|||
// EncryptionType specifies Cilium Encryption method ("ipsec", "wireguard").
|
||||
// Default: ipsec
|
||||
EncryptionType CiliumEncryptionType `json:"encryptionType,omitempty"`
|
||||
// NodeEncryption enables encryption for pure node to node traffic.
|
||||
// Default: false
|
||||
NodeEncryption bool `json:"nodeEncryption,omitempty"`
|
||||
// IdentityAllocationMode specifies in which backend identities are stored ("crd", "kvstore").
|
||||
// Default: crd
|
||||
IdentityAllocationMode string `json:"identityAllocationMode,omitempty"`
|
||||
|
|
|
@ -387,6 +387,9 @@ type CiliumNetworkingSpec struct {
|
|||
// EncryptionType specifies Cilium Encryption method ("ipsec", "wireguard").
|
||||
// Default: ipsec
|
||||
EncryptionType CiliumEncryptionType `json:"encryptionType,omitempty"`
|
||||
// NodeEncryption enables encryption for pure node to node traffic.
|
||||
// Default: false
|
||||
NodeEncryption bool `json:"nodeEncryption,omitempty"`
|
||||
// EnvoyLog is unused.
|
||||
// +k8s:conversion-gen=false
|
||||
EnvoyLog string `json:"envoyLog,omitempty"`
|
||||
|
|
|
@ -1977,6 +1977,7 @@ func autoConvert_v1alpha2_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *
|
|||
out.EnablePrometheusMetrics = in.EnablePrometheusMetrics
|
||||
out.EnableEncryption = in.EnableEncryption
|
||||
out.EncryptionType = kops.CiliumEncryptionType(in.EncryptionType)
|
||||
out.NodeEncryption = in.NodeEncryption
|
||||
// INFO: in.EnvoyLog opted out of conversion generation
|
||||
out.IdentityAllocationMode = in.IdentityAllocationMode
|
||||
out.IdentityChangeGracePeriod = in.IdentityChangeGracePeriod
|
||||
|
@ -2086,6 +2087,7 @@ func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha2_CiliumNetworkingSpec(in *
|
|||
out.EnablePrometheusMetrics = in.EnablePrometheusMetrics
|
||||
out.EnableEncryption = in.EnableEncryption
|
||||
out.EncryptionType = CiliumEncryptionType(in.EncryptionType)
|
||||
out.NodeEncryption = in.NodeEncryption
|
||||
out.IdentityAllocationMode = in.IdentityAllocationMode
|
||||
out.IdentityChangeGracePeriod = in.IdentityChangeGracePeriod
|
||||
out.Masquerade = in.Masquerade
|
||||
|
|
|
@ -345,6 +345,9 @@ type CiliumNetworkingSpec struct {
|
|||
// EncryptionType specifies Cilium Encryption method ("ipsec", "wireguard").
|
||||
// Default: ipsec
|
||||
EncryptionType CiliumEncryptionType `json:"encryptionType,omitempty"`
|
||||
// NodeEncryption enables encryption for pure node to node traffic.
|
||||
// Default: false
|
||||
NodeEncryption bool `json:"nodeEncryption,omitempty"`
|
||||
// IdentityAllocationMode specifies in which backend identities are stored ("crd", "kvstore").
|
||||
// Default: crd
|
||||
IdentityAllocationMode string `json:"identityAllocationMode,omitempty"`
|
||||
|
|
|
@ -2146,6 +2146,7 @@ func autoConvert_v1alpha3_CiliumNetworkingSpec_To_kops_CiliumNetworkingSpec(in *
|
|||
out.EnablePrometheusMetrics = in.EnablePrometheusMetrics
|
||||
out.EnableEncryption = in.EnableEncryption
|
||||
out.EncryptionType = kops.CiliumEncryptionType(in.EncryptionType)
|
||||
out.NodeEncryption = in.NodeEncryption
|
||||
out.IdentityAllocationMode = in.IdentityAllocationMode
|
||||
out.IdentityChangeGracePeriod = in.IdentityChangeGracePeriod
|
||||
out.Masquerade = in.Masquerade
|
||||
|
@ -2221,6 +2222,7 @@ func autoConvert_kops_CiliumNetworkingSpec_To_v1alpha3_CiliumNetworkingSpec(in *
|
|||
out.EnablePrometheusMetrics = in.EnablePrometheusMetrics
|
||||
out.EnableEncryption = in.EnableEncryption
|
||||
out.EncryptionType = CiliumEncryptionType(in.EncryptionType)
|
||||
out.NodeEncryption = in.NodeEncryption
|
||||
out.IdentityAllocationMode = in.IdentityAllocationMode
|
||||
out.IdentityChangeGracePeriod = in.IdentityChangeGracePeriod
|
||||
out.Masquerade = in.Masquerade
|
||||
|
|
|
@ -103,6 +103,7 @@ data:
|
|||
{{ else if eq .EncryptionType "wireguard" }}
|
||||
enable-wireguard: "true"
|
||||
{{ end }}
|
||||
encrypt-node: "{{ .NodeEncryption }}"
|
||||
{{ end }}
|
||||
|
||||
# Enable IPv4 addressing. If enabled, all endpoints are allocated an IPv4
|
||||
|
|
Loading…
Reference in New Issue