Skip to content

Commit cdc919f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add custom node image configuration
feat: add GKE agent sandbox configuration docs: various documentation improvements PiperOrigin-RevId: 922506661
1 parent 7496288 commit cdc919f

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

google/container/v1beta1/cluster_service.proto

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,9 @@ message LinuxNodeConfig {
797797
// net.core.wmem_max
798798
// net.core.optmem_max
799799
// net.core.somaxconn
800+
// net.ipv4.neigh.default.gc_thresh1
801+
// net.ipv4.neigh.default.gc_thresh2
802+
// net.ipv4.neigh.default.gc_thresh3
800803
// net.ipv4.tcp_rmem
801804
// net.ipv4.tcp_wmem
802805
// net.ipv4.tcp_tw_reuse
@@ -812,6 +815,8 @@ message LinuxNodeConfig {
812815
// net.netfilter.nf_conntrack_tcp_timeout_time_wait
813816
// net.netfilter.nf_conntrack_tcp_timeout_established
814817
// net.netfilter.nf_conntrack_acct
818+
// kernel.keys.maxkeys
819+
// kernel.keys.maxbytes
815820
// kernel.shmmni
816821
// kernel.shmmax
817822
// kernel.shmall
@@ -1424,6 +1429,10 @@ message NodeConfig {
14241429
// for available image types.
14251430
string image_type = 5;
14261431

1432+
// The node image configuration to use for this node pool. Note that this is
1433+
// only applicable for node pools using image_type=CUSTOM.
1434+
CustomImageConfig node_image_config = 90;
1435+
14271436
// The Kubernetes labels (key/value pairs) to apply to each node. The values
14281437
// in this field are added to the set of default labels Kubernetes applies to
14291438
// nodes.
@@ -1851,6 +1860,18 @@ message ShieldedInstanceConfig {
18511860
bool enable_integrity_monitoring = 2;
18521861
}
18531862

1863+
// CustomImageConfig contains the information r
1864+
message CustomImageConfig {
1865+
// The name of the image to use for this node.
1866+
string image = 1;
1867+
1868+
// The name of the image family to use for this node.
1869+
string image_family = 2;
1870+
1871+
// The project containing the image to use for this node.
1872+
string image_project = 3;
1873+
}
1874+
18541875
// SandboxConfig contains configurations of the sandbox to use for the node.
18551876
message SandboxConfig {
18561877
// Possible types of sandboxes.
@@ -4074,6 +4095,14 @@ message ClusterUpdate {
40744095
// The desired GCFS config for the cluster.
40754096
GcfsConfig desired_gcfs_config = 109;
40764097

4098+
// The desired name of the image to use for this node.
4099+
// This is used to create clusters using a custom image.
4100+
string desired_image = 44;
4101+
4102+
// The project containing the desired image to use for this node.
4103+
// This is used to create clusters using a custom image.
4104+
string desired_image_project = 45;
4105+
40774106
// Configuration of etcd encryption.
40784107
DatabaseEncryption desired_database_encryption = 46;
40794108

@@ -4771,6 +4800,14 @@ message UpdateNodePoolRequest {
47714800
// for available image types.
47724801
string image_type = 6 [(google.api.field_behavior) = REQUIRED];
47734802

4803+
// The desired name of the image name to use for this node.
4804+
// This is used to create clusters using a custom image.
4805+
string image = 10;
4806+
4807+
// The project containing the desired image to use for this node pool.
4808+
// This is used to create clusters using a custom image.
4809+
string image_project = 11;
4810+
47744811
// The desired list of Google Compute Engine
47754812
// [zones](https://cloud.google.com/compute/docs/zones#available)
47764813
// in which the node pool's nodes should be located. Changing the locations
@@ -6888,6 +6925,10 @@ message NetworkConfig {
68886925
// [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1beta1.ClusterUpdate.desired_default_enable_private_nodes]
68896926
optional bool default_enable_private_nodes = 22;
68906927

6928+
// Optional. DataplaneV2Config specifies the DPv2 configuration.
6929+
optional DataplaneV2Config dataplane_v2_config = 23
6930+
[(google.api.field_behavior) = OPTIONAL];
6931+
68916932
// Disable L4 load balancer VPC firewalls to enable firewall policies.
68926933
optional bool disable_l4_lb_firewall_reconciliation = 24;
68936934
}
@@ -8183,6 +8224,25 @@ enum DatapathProvider {
81838224
ADVANCED_DATAPATH = 2;
81848225
}
81858226

8227+
// DataplaneV2Config is the configuration for DPv2.
8228+
message DataplaneV2Config {
8229+
// Options on how to scale the cluster.
8230+
enum ScalabilityMode {
8231+
// Default value.
8232+
SCALABILITY_MODE_UNSPECIFIED = 0;
8233+
8234+
// Disables the scale optimized mode for DPv2.
8235+
DISABLED = 3;
8236+
8237+
// Enables the scale optimized mode for DPv2.
8238+
SCALE_OPTIMIZED = 4;
8239+
}
8240+
8241+
// Optional. Scalability mode for the cluster.
8242+
optional ScalabilityMode scalability_mode = 1
8243+
[(google.api.field_behavior) = OPTIONAL];
8244+
}
8245+
81868246
// PodAutoscaling is used for configuration of parameters
81878247
// for workload autoscaling.
81888248
message PodAutoscaling {

0 commit comments

Comments
 (0)