Documentation ¶
Overview ¶
Provide a datasource to query EKS cluster credential info (offlined).
~> **NOTE:** This resource was offline no longer supported.
Example Usage ¶
```hcl
data "tencentcloud_eks_cluster_credential" "foo" { cluster_id = "cls-xxxxxxxx" }
example outputs ¶
output "addresses" { value = data.tencentcloud_eks_cluster_credential.cred.addresses } output "ca_cert" { value = data.tencentcloud_eks_cluster_credential.cred.credential.ca_cert } output "token" { value = data.tencentcloud_eks_cluster_credential.cred.credential.token } output "public_lb_param" { value = data.tencentcloud_eks_cluster_credential.cred.public_lb.0.extra_param } output "internal_lb_subnet" { value = data.tencentcloud_eks_cluster_credential.cred.internal_lb.0.subnet_id }
```
Use this data source to query elastic kubernetes cluster resource (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
```
data "tencentcloud_eks_clusters" "foo" { cluster_id = "cls-xxxxxxxx" }
```
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Provides an elastic kubernetes cluster resource (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
```
resource "tencentcloud_vpc" "vpc" { name = "tf-eks-vpc" cidr_block = "10.2.0.0/16" } resource "tencentcloud_subnet" "sub" { vpc_id = tencentcloud_vpc.vpc.id name = "tf-as-subnet" cidr_block = "10.2.11.0/24" availability_zone = "ap-guangzhou-3" } resource "tencentcloud_subnet" "sub2" { vpc_id = tencentcloud_vpc.vpc.id name = "tf-as-subnet" cidr_block = "10.2.10.0/24" availability_zone = "ap-guangzhou-3" } resource "tencentcloud_eks_cluster" "foo" { cluster_name = "tf-test-eks" k8s_version = "1.18.4" vpc_id = tencentcloud_vpc.vpc.id subnet_ids = [ tencentcloud_subnet.sub.id, tencentcloud_subnet.sub2.id, ] cluster_desc = "test eks cluster created by terraform" service_subnet_id = tencentcloud_subnet.sub.id dns_servers { domain = "www.example1.com" servers = ["1.1.1.1:8080", "1.1.1.1:8081", "1.1.1.1:8082"] } enable_vpc_core_dns = true need_delete_cbs = true tags = { hello = "world" } }
```
Import ¶
``` terraform import tencentcloud_eks_cluster.foo cluster-id ```
Provides an elastic kubernetes service container instance (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
``` data "tencentcloud_security_groups" "group" { }
data "tencentcloud_availability_zones_by_product" "zone" { product = "cvm" } resource "tencentcloud_vpc" "vpc" { cidr_block = "10.0.0.0/24" name = "tf-test-eksci" } resource "tencentcloud_subnet" "sub" { availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name cidr_block = "10.0.0.0/24" name = "sub" vpc_id = tencentcloud_vpc.vpc.id } resource "tencentcloud_cbs_storage" "cbs" { availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name storage_name = "cbs1" storage_size = 10 storage_type = "CLOUD_PREMIUM" } resource "tencentcloud_eks_container_instance" "eci1" { name = "foo" vpc_id = tencentcloud_vpc.vpc.id subnet_id = tencentcloud_subnet.sub.id cpu = 2 cpu_type = "intel" restart_policy = "Always" memory = 4 security_groups = [data.tencentcloud_security_groups.group.security_groups[0].security_group_id] cbs_volume { name = "vol1" disk_id = tencentcloud_cbs_storage.cbs.id } container { name = "redis1" image = "redis" liveness_probe { init_delay_seconds = 1 timeout_seconds = 3 period_seconds = 11 success_threshold = 1 failure_threshold = 3 http_get_path = "/" http_get_port = 443 http_get_scheme = "HTTPS" } readiness_probe { init_delay_seconds = 1 timeout_seconds = 3 period_seconds = 10 success_threshold = 1 failure_threshold = 3 tcp_socket_port = 81 } } container { name = "nginx" image = "nginx" } init_container { name = "alpine" image = "alpine:latest" } }
```
Import ¶
``` terraform import tencentcloud_eks_container_instance.foo container-instance-id ```
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Auto scaling group for kubernetes cluster (offlined).
~> **NOTE:** This resource was offline and no longer supported.
Example Usage ¶
```hcl # Use tencentcloud_kubernetes_node_pool instead
resource "tencentcloud_kubernetes_node_pool" "mynodepool" { name = "mynodepool" cluster_id = "cls-xxxxxxxx" max_size = 6 min_size = 1 vpc_id = "vpc-xxxxxxxx" subnet_ids = ["subnet-xxxxxxxx"] retry_policy = "INCREMENTAL_INTERVALS" desired_capacity = 4 enable_auto_scale = true multi_zone_subnet_policy = "EQUALITY" auto_scaling_config { instance_type = var.default_instance_type system_disk_type = "CLOUD_PREMIUM" system_disk_size = "50" orderly_security_group_ids = ["sg-24vswocp"] instance_charge_type = "SPOTPAID" spot_instance_type = "one-time" spot_max_price = "1000" data_disk { disk_type = "CLOUD_PREMIUM" disk_size = 50 } internet_charge_type = "TRAFFIC_POSTPAID_BY_HOUR" internet_max_bandwidth_out = 10 public_ip_assigned = true password = input_your_password enhanced_security_service = false enhanced_monitor_service = false } labels = { "test1" = "test1", "test2" = "test2", }
}
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Code generated by iacg; DO NOT EDIT.
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudContainerClusterInstances() *schema.Resource
- func DataSourceTencentCloudContainerClusters() *schema.Resource
- func DataSourceTencentCloudEKSClusters() *schema.Resource
- func DataSourceTencentCloudEksClusterCredential() *schema.Resource
- func DataSourceTencentCloudKubernetesAvailableClusterVersions() *schema.Resource
- func DataSourceTencentCloudKubernetesCharts() *schema.Resource
- func DataSourceTencentCloudKubernetesClusterAuthenticationOptions() *schema.Resource
- func DataSourceTencentCloudKubernetesClusterCommonNames() *schema.Resource
- func DataSourceTencentCloudKubernetesClusterInstances() *schema.Resource
- func DataSourceTencentCloudKubernetesClusterLevels() *schema.Resource
- func DataSourceTencentCloudKubernetesClusterNativeNodePools() *schema.Resource
- func DataSourceTencentCloudKubernetesClusterNodePools() *schema.Resource
- func DataSourceTencentCloudKubernetesClusters() *schema.Resource
- func GetOptimizedTkeLabels(d *schema.ResourceData, k string) []*tke.Label
- func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
- func GetTkeTags(d *schema.ResourceData, k string) []*tke.Tag
- func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint
- func ModifyClusterInternetOrIntranetAccess(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, ...) error
- func ModifySecurityServiceOfCvmInNodePool(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, ...) error
- func ResourceTencentCloudContainerCluster() *schema.Resource
- func ResourceTencentCloudContainerClusterInstance() *schema.Resource
- func ResourceTencentCloudEksCluster() *schema.Resource
- func ResourceTencentCloudEksContainerInstance() *schema.Resource
- func ResourceTencentCloudKubernetesAddon() *schema.Resource
- func ResourceTencentCloudKubernetesAddonAttachment() *schema.Resource
- func ResourceTencentCloudKubernetesAddonConfig() *schema.Resource
- func ResourceTencentCloudKubernetesAsScalingGroup() *schema.Resource
- func ResourceTencentCloudKubernetesAuthAttachment() *schema.Resource
- func ResourceTencentCloudKubernetesBackupStorageLocation() *schema.Resource
- func ResourceTencentCloudKubernetesCluster() *schema.Resource
- func ResourceTencentCloudKubernetesClusterAttachment() *schema.Resource
- func ResourceTencentCloudKubernetesClusterMasterAttachment() *schema.Resource
- func ResourceTencentCloudKubernetesEncryptionProtection() *schema.Resource
- func ResourceTencentCloudKubernetesHealthCheckPolicy() *schema.Resource
- func ResourceTencentCloudKubernetesLogConfig() *schema.Resource
- func ResourceTencentCloudKubernetesNativeNodePool() *schema.Resource
- func ResourceTencentCloudKubernetesNodePool() *schema.Resource
- func ResourceTencentCloudKubernetesScaleWorker() *schema.Resource
- func ResourceTencentCloudKubernetesServerlessNodePool() *schema.Resource
- func ResourceTencentCloudTkeClusterEndpoint() *schema.Resource
- func ResourceTkeGetAddonsDiffs(o, n []interface{}) (adds, removes, changes []interface{})
- func TKEGpuArgsSetting() map[string]*schema.Schema
- func TkeCvmCreateInfo() map[string]*schema.Schema
- func TkeInstanceAdvancedSetting() map[string]*schema.Schema
- type AddonRequestBody
- type AddonResponseData
- type AddonResponseMeta
- type AddonSpec
- type AddonSpecChart
- type AddonSpecValues
- type App
- type AppList
- type AppPhase
- type AppStatus
- type AppType
- type ClusterAdvancedSettings
- type ClusterBasicSetting
- type ClusterCidrSettings
- type ClusterExtraArgs
- type ClusterInfo
- type DescribeLogSwitchesResponse
- type DescribeLogSwitchesResponseParams
- type EksClusterCredentialResponse
- type EksClusterInfo
- type EksService
- func (me *EksService) CreateEksCluster(ctx context.Context, request *tke.CreateEKSClusterRequest) (id string, errRet error)
- func (me *EksService) CreateEksContainerInstances(ctx context.Context, request *tke.CreateEKSContainerInstancesRequest) (id string, errRet error)
- func (me *EksService) DeleteEksCluster(ctx context.Context, request *tke.DeleteEKSClusterRequest) (errRet error)
- func (me *EksService) DeleteEksContainerInstance(ctx context.Context, request *tke.DeleteEKSContainerInstancesRequest) (errRet error)
- func (me *EksService) DescribeEKSClusterCredential(ctx context.Context, request *tke.DescribeEKSClusterCredentialRequest) (info *EksClusterCredentialResponse, errRet error)
- func (me *EksService) DescribeEKSClusterCredentialById(ctx context.Context, id string) (info *EksClusterCredentialResponse, errRet error)
- func (me *EksService) DescribeEKSClusters(ctx context.Context, id string, name string) (eksClusters []EksClusterInfo, errRet error)
- func (me *EksService) DescribeEksCluster(ctx context.Context, id string) (clusterInfo EksClusterInfo, has bool, errRet error)
- func (me *EksService) DescribeEksContainerInstanceById(ctx context.Context, id string) (instance *tke.EksCi, has bool, errRet error)
- func (me *EksService) DescribeEksContainerInstancesByFilter(ctx context.Context, filters []*tke.Filter, limit uint64, offset uint64) (instances []*tke.EksCi, errRet error)
- func (me *EksService) UpdateEksCluster(ctx context.Context, request *tke.UpdateEKSClusterRequest) (errRet error)
- func (me *EksService) UpdateEksContainerInstances(ctx context.Context, request *tke.UpdateEKSContainerInstanceRequest) (errRet error)
- type InstanceAdvancedSettings
- type InstanceInfo
- type OverrideSettings
- type PrometheusConfigIds
- type RawValuesType
- type RunInstancesForNode
- type Switch
- type SwitchInfo
- type TkeService
- func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)
- func (me *TkeService) AddVpcCniSubnets(ctx context.Context, id string, subnets []string, vpcId string) (errRet error)
- func (me *TkeService) CheckClusterVersion(ctx context.Context, id string, clusterVersion string) (isOk bool, errRet error)
- func (me *TkeService) CheckInstancesUpgradeAble(ctx context.Context, id string, upgradeType string) (instanceIds []string, errRet error)
- func (me *TkeService) CheckOneOfClusterNodeReady(ctx context.Context, clusterId string, mustHaveWorkers bool) error
- func (me *TkeService) CreateCluster(ctx context.Context, basic ClusterBasicSetting, ...) (id string, errRet error)
- func (me *TkeService) CreateClusterAsGroup(ctx context.Context, id, groupPara, configPara string, labels []*tke.Label, ...) (asGroupId string, errRet error)
- func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId, securityGroupId string, ...) (errRet error)
- func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, ...) (instanceIds []string, errRet error)
- func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, ...) (asGroupId string, errRet error)
- func (me *TkeService) CreateClusterVirtualNodePool(ctx context.Context, request *tke.CreateClusterVirtualNodePoolRequest) (id string, errRet error)
- func (me *TkeService) CreateExtensionAddon(ctx context.Context, clusterName, reqBody string) (errRet error)
- func (me *TkeService) DeleteBackupStorageLocation(ctx context.Context, name string) (errRet error)
- func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)
- func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId string) (errRet error)
- func (me *TkeService) DeleteClusterEndpoint(ctx context.Context, id string, isInternet bool) (errRet error)
- func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)
- func (me *TkeService) DeleteClusterNodePool(ctx context.Context, id, nodePoolId string, deleteKeepInstance bool) (errRet error)
- func (me *TkeService) DeleteClusterVirtualNodePool(ctx context.Context, request *tke.DeleteClusterVirtualNodePoolRequest) (errRet error)
- func (me *TkeService) DeleteExtensionAddon(ctx context.Context, clusterName, addon string) (errRet error)
- func (me *TkeService) DeleteKubernetesAddonAttachmentById(ctx context.Context) (errRet error)
- func (me *TkeService) DeleteKubernetesAuthAttachmentById(ctx context.Context, clusterId string) (errRet error)
- func (me *TkeService) DeleteTkeEncryptionProtectionById(ctx context.Context, clusterId string) (errRet error)
- func (me *TkeService) DescribeBackupStorageLocations(ctx context.Context, names []string) (locations []*tke.BackupStorageLocation, errRet error)
- func (me *TkeService) DescribeCluster(ctx context.Context, id string) (clusterInfo ClusterInfo, has bool, errRet error)
- func (me *TkeService) DescribeClusterAsGroupsByGroupId(ctx context.Context, id string, groupId string) (clusterAsGroupSet *tke.ClusterAsGroup, errRet error)
- func (me *TkeService) DescribeClusterAuthenticationOptions(ctx context.Context, id string) (options *tke.ServiceAccountAuthenticationOptions, state string, ...)
- func (me *TkeService) DescribeClusterCommonNames(ctx context.Context, request *tke.DescribeClusterCommonNamesRequest) (commonNames []*tke.CommonName, errRet error)
- func (me *TkeService) DescribeClusterConfig(ctx context.Context, id string, isPublic bool) (config string, errRet error)
- func (me *TkeService) DescribeClusterEndpointStatus(ctx context.Context, id string, isExtranet bool) (status string, message string, errRet error)
- func (me *TkeService) DescribeClusterEndpoints(ctx context.Context, id string) (response tke.DescribeClusterEndpointsResponseParams, errRet error)
- func (me *TkeService) DescribeClusterExtraArgs(ctx context.Context, clusterId string) (extraArgs *tke.ClusterExtraArgs, errRet error)
- func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
- func (me *TkeService) DescribeClusterInstancesByRole(ctx context.Context, id, role string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
- func (me *TkeService) DescribeClusterLevelAttribute(ctx context.Context, id string) (clusterLevels []*tke.ClusterLevelAttribute, errRet error)
- func (me *TkeService) DescribeClusterNodePoolGlobalConfig(ctx context.Context, clusterId string) (npGlobalConfig *tke.ClusterAsGroupOption, errRet error)
- func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)
- func (me *TkeService) DescribeClusterVirtualNode(ctx context.Context, clusterId string) (virtualNodes []tke.VirtualNode, errRet error)
- func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)
- func (me *TkeService) DescribeEnableVpcCniProgress(ctx context.Context, id string) (status, message string, errRet error)
- func (me *TkeService) DescribeExtensionAddon(ctx context.Context, clusterName, addon string) (result string, has bool, errRet error)
- func (me *TkeService) DescribeExtensionAddonList(ctx context.Context, clusterId string) (AppList, error)
- func (me *TkeService) DescribeExternalNodeSupportConfig(ctx context.Context, clusterId string) (resp *tke.DescribeExternalNodeSupportConfigResponseParams, errRet error)
- func (me *TkeService) DescribeIPAMD(ctx context.Context, clusterId string) (resp *tke.DescribeIPAMDResponseParams, errRet error)
- func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
- func (me *TkeService) DescribeKubernetesAddonAttachmentById(ctx context.Context) (ret *tke.ForwardApplicationRequestV3ResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesAddonById(ctx context.Context, clusterId string, addonName string) (ret *tke.Addon, errRet error)
- func (me *TkeService) DescribeKubernetesAuthAttachmentById(ctx context.Context, clusterId string) (ret *tke.DescribeClusterAuthenticationOptionsResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesAvailableClusterVersionsByFilter(ctx context.Context, param map[string]interface{}) (ret *tke.DescribeAvailableClusterVersionResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesBackupStorageLocationById(ctx context.Context, name string) (ret *tke.BackupStorageLocation, errRet error)
- func (me *TkeService) DescribeKubernetesChartsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.AppChart, errRet error)
- func (me *TkeService) DescribeKubernetesClusterAttachmentById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)
- func (me *TkeService) DescribeKubernetesClusterAttachmentById1(ctx context.Context, instanceId string) (ret *cvm.Instance, errRet error)
- func (me *TkeService) DescribeKubernetesClusterAttachmentById2(ctx context.Context, instanceId string, clusterId string) (ret *tke.Instance, errRet error)
- func (me *TkeService) DescribeKubernetesClusterAuthenticationOptionsByFilter(ctx context.Context, param map[string]interface{}) (ret *tke.DescribeClusterAuthenticationOptionsResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesClusterById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)
- func (me *TkeService) DescribeKubernetesClusterById1(ctx context.Context, clusterId string) (ret *tke.DescribeClusterInstancesResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesClusterById2(ctx context.Context, clusterId string) (ret *tke.DescribeClusterSecurityResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesClusterCommonNamesByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.CommonName, errRet error)
- func (me *TkeService) DescribeKubernetesClusterInstancesByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.Instance, errRet error)
- func (me *TkeService) DescribeKubernetesClusterLevelsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.ClusterLevelAttribute, errRet error)
- func (me *TkeService) DescribeKubernetesClusterMasterAttachmentById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)
- func (me *TkeService) DescribeKubernetesClusterMasterAttachmentById1(ctx context.Context, instanceId string) (ret *cvm.Instance, errRet error)
- func (me *TkeService) DescribeKubernetesClusterMasterAttachmentById2(ctx context.Context, clusterId string, instanceId string, nodeRole string) (ret *tke.DescribeClusterInstancesResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesClusterNativeNodePoolsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke2.NodePool, errRet error)
- func (me *TkeService) DescribeKubernetesClusterNodePoolsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.NodePool, errRet error)
- func (me *TkeService) DescribeKubernetesClustersByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.Cluster, errRet error)
- func (me *TkeService) DescribeKubernetesEncryptionProtectionById(ctx context.Context, clusterId string) (ret *tke.DescribeEncryptionStatusResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesHealthCheckPolicyById(ctx context.Context, clusterId string, name string) (ret *tke2.HealthCheckPolicy, errRet error)
- func (me *TkeService) DescribeKubernetesLogConfigById(ctx context.Context, clusterId string, logConfigName string, ...) (ret *tke.DescribeLogConfigsResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesNativeNodePoolById(ctx context.Context, clusterId string, nodePoolId string) (ret *tke2.NodePool, errRet error)
- func (me *TkeService) DescribeKubernetesNodePoolById(ctx context.Context, clusterId string) (ret *tke.Cluster, errRet error)
- func (me *TkeService) DescribeKubernetesNodePoolById1(ctx context.Context, clusterId string, nodePoolId string) (ret *tke.NodePool, errRet error)
- func (me *TkeService) DescribeKubernetesScaleWorkerById(ctx context.Context, clusterId string) (ret *tke.DescribeClustersResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesScaleWorkerById1(ctx context.Context) (ret *cvm.DescribeInstancesResponseParams, errRet error)
- func (me *TkeService) DescribeKubernetesServerlessNodePoolById(ctx context.Context, clusterId string, nodePoolId string) (ret *tke.VirtualNodePool, errRet error)
- func (me *TkeService) DescribeLogSwitches(ctx context.Context, clusterId string) (resp []*tke.Switch, errRet error)
- func (me *TkeService) DescribeNodePool(ctx context.Context, clusterId string, nodePoolId string) (nodePool *tke.NodePool, has bool, errRet error)
- func (me *TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId(ctx context.Context, clusterId, nodePoolId string) (instance *tke.VirtualNodePool, has bool, errRet error)
- func (me *TkeService) DescribeTkeEncryptionProtectionById(ctx context.Context, clusterId string) (encryptionProtection *tke.DescribeEncryptionStatusResponseParams, errRet error)
- func (me *TkeService) DisableClusterAudit(ctx context.Context, request *tke.DisableClusterAuditRequest) (errRet error)
- func (me *TkeService) DisableEventPersistence(ctx context.Context, request *tke.DisableEventPersistenceRequest) (errRet error)
- func (me *TkeService) DisableVpcCniNetworkType(ctx context.Context, id string) (errRet error)
- func (me *TkeService) EnableClusterAudit(ctx context.Context, request *tke.EnableClusterAuditRequest) (errRet error)
- func (me *TkeService) EnableEventPersistence(ctx context.Context, request *tke.EnableEventPersistenceRequest) (errRet error)
- func (me *TkeService) EnableVpcCniNetworkType(ctx context.Context, id string, vpcCniType string, enableStaticIp bool, ...) (errRet error)
- func (me *TkeService) GetAddonNameFromJson(reqJson string) (name string, err error)
- func (me *TkeService) GetAddonReqBody(addon, version string, values []*string, rawValues, rawValuesType *string) (string, error)
- func (me *TkeService) GetAddonsPath(cluster, addon string) string
- func (me *TkeService) GetTkeAppChartList(ctx context.Context, request *tke.GetTkeAppChartListRequest) (info []*tke.AppChart, errRet error)
- func (me *TkeService) GetUpgradeInstanceResult(ctx context.Context, id string) (done bool, errRet error)
- func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)
- func (me *TkeService) ModifyClusterAsGroupAttribute(ctx context.Context, id, asGroupId string, maxSize, minSize int64) (errRet error)
- func (me *TkeService) ModifyClusterAttribute(ctx context.Context, id string, projectId int64, ...) (errRet error)
- func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)
- func (me *TkeService) ModifyClusterEndpointSG(ctx context.Context, id string, securityGroup string) (errRet error)
- func (me *TkeService) ModifyClusterEndpointSP(ctx context.Context, id string, securityPolicies []string) (errRet error)
- func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, nodePoolId string, name string, ...) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolDesiredCapacity(ctx context.Context, clusterId, nodePoolId string, desiredCapacity int64) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)
- func (me *TkeService) ModifyClusterNodePoolInstanceTypes(ctx context.Context, clusterId, nodePoolId string, instanceTypes []*string) (errRet error)
- func (me *TkeService) ModifyClusterVersion(ctx context.Context, id string, clusterVersion string, extraArgs interface{}) (errRet error)
- func (me *TkeService) ModifyClusterVirtualNodePool(ctx context.Context, request *tke.ModifyClusterVirtualNodePoolRequest) (errRet error)
- func (me *TkeService) ModifyDeletionProtection(ctx context.Context, id string, enable bool) (errRet error)
- func (me *TkeService) PollingAddonsPhase(ctx context.Context, clusterId, addonName string, ...) (string, bool, error)
- func (me *TkeService) ProcessExtensionAddons(ctx context.Context, request *tke.ForwardApplicationRequestV3Request) (response *tke.ForwardApplicationRequestV3Response, err error)
- func (me *TkeService) SwitchClusterAudit(ctx context.Context, clusterId, logSetId, topicId string, ...) error
- func (me *TkeService) SwitchEventPersistence(ctx context.Context, clusterId, logSetId, topicId string, ...) error
- func (me *TkeService) SwitchLogAgent(ctx context.Context, clusterId, rootDir string, enable bool) error
- func (me *TkeService) TkeEncryptionProtectionStateRefreshFunc(clusterId string, failStates []string) resource.StateRefreshFunc
- func (me *TkeService) UninstallLogAgent(ctx context.Context, request *tke.UninstallLogAgentRequest) (errRet error)
- func (me *TkeService) UpdateExtensionAddon(ctx context.Context, clusterName, addon, reqBody string) (errRet error)
- func (me *TkeService) UpgradeClusterInstances(ctx context.Context, id string, upgradeType string, instanceIds []string) (errRet error)
- func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, ...)
Constants ¶
const ( TKE_CLUSTER_OS_CENTOS72 = "centos7.2x86_64" TKE_CLUSTER_OS_CENTOS76 = "centos7.6.0_x64" TKE_CLUSTER_OS_UBUNTU18 = "ubuntu18.04.1x86_64" TKE_CLUSTER_OS_LINUX24 = "tlinux2.4x86_64" TKE_CLUSTER_OS_LINUX22 = "tlinux2.2(tkernel3)x86_64" TKE_CLUSTER_OS_LINUXF22 = "Tencent tlinux release 2.2 (Final)" )
const ( TkeClusterOsCentOS76 = "centos7.6x86_64" //TkeClusterOsUbuntu16 = "ubuntu16.04.1 LTSx86_64" TkeClusterOsUbuntu18 = "ubuntu18.04.1 LTSx86_64" )
兼容旧的 cluster_os 定义
const ( TKE_DEPLOY_TYPE_MANAGED = "MANAGED_CLUSTER" TKE_DEPLOY_TYPE_INDEPENDENT = "INDEPENDENT_CLUSTER" )
const ( TKE_RUNTIME_DOCKER = "docker" TKE_RUNTIME_CONTAINERD = "containerd" )
const ( TKE_ROLE_MASTER_ETCD = "MASTER_ETCD" TKE_ROLE_WORKER = "WORKER" )
const ( TKE_CLUSTER_OS_TYPE_DOCKER_CUSTOMIZE = "DOCKER_CUSTOMIZE" TKE_CLUSTER_OS_TYPE_GENERAL = "GENERAL" )
const ( TkeInternetStatusCreating = "Creating" TkeInternetStatusCreateFailed = "CreateFailed" TkeInternetStatusCreated = "Created" TkeInternetStatusDeleting = "Deleting" TkeInternetStatusDeleted = "Deleted" TkeInternetStatusDeletedFailed = "DeletedFailed" TkeInternetStatusNotfound = "NotFound" )
const ( TKE_CLUSTER_NETWORK_TYPE_GR = "GR" TKE_CLUSTER_NETWORK_TYPE_VPC_CNI = "VPC-CNI" TKE_CLUSTER_NETWORK_TYPE_CILIUM_OVERLAY = "CiliumOverlay" )
const ( TKE_CLUSTER_VPC_CNI_STATUS_RUNNING = "Running" TKE_CLUSTER_VPC_CNI_STATUS_SUCCEED = "Succeed" TKE_CLUSTER_VPC_CNI_STATUS_FAILED = "Failed" )
const ( TKE_CLUSTER_NODE_NAME_TYPE_LAN_IP = "lan-ip" TKE_CLUSTER_NODE_NAME_TYPE_HOSTNAME = "hostname" )
const ( TKE_CLUSTER_INTERNET = true TKE_CLUSTER_INTRANET = false TKE_CLUSTER_OPEN_ACCESS = true TKE_CLUSTER_CLOSE_ACCESS = false )
const (
DefaultAuthenticationOptionsIssuer = "https://kubernetes.default.svc.cluster.local"
)
const (
DefaultDesiredPodNum = 0
)
const (
InstallSecurityAgentCommandId = "cmd-d8jj2skv"
)
const (
TKE_CLUSTER_KUBE_PROXY_MODE_BPF = "kube-proxy-bpf"
)
Variables ¶
var TKE_ADDON_DEFAULT_VALUES_KEY = []string{
"global.image.host",
"global.cluster.id",
"global.cluster.appid",
"global.cluster.uin",
"global.cluster.subuin",
"global.cluster.type",
"global.cluster.clustertype",
"global.cluster.kubeversion",
"global.cluster.kubeminor",
"global.cluster.region",
"global.cluster.longregion",
"global.testenv",
}
This use to filter default values the addon returns.
var TKE_CLUSTER_KUBE_PROXY_MODE = []string{TKE_CLUSTER_KUBE_PROXY_MODE_BPF}
var TKE_CLUSTER_NETWORK_TYPE = []string{TKE_CLUSTER_NETWORK_TYPE_GR, TKE_CLUSTER_NETWORK_TYPE_VPC_CNI, TKE_CLUSTER_NETWORK_TYPE_CILIUM_OVERLAY}
var TKE_CLUSTER_NODE_NAME_TYPE = []string{TKE_CLUSTER_NODE_NAME_TYPE_LAN_IP, TKE_CLUSTER_NODE_NAME_TYPE_HOSTNAME}
var TKE_CLUSTER_OS = []string{TKE_CLUSTER_OS_CENTOS76, TKE_CLUSTER_OS_UBUNTU18, TKE_CLUSTER_OS_LINUX24}
var TKE_CLUSTER_OS_TYPES = []string{TKE_CLUSTER_OS_TYPE_GENERAL}
var TKE_DEPLOY_TYPES = []string{TKE_DEPLOY_TYPE_MANAGED, TKE_DEPLOY_TYPE_INDEPENDENT}
var TKE_INSTANCE_CHARGE_TYPE = []string{svccvm.CVM_CHARGE_TYPE_PREPAID, svccvm.CVM_CHARGE_TYPE_POSTPAID}
var TKE_RUNTIMES = []string{TKE_RUNTIME_DOCKER, TKE_RUNTIME_CONTAINERD}
Functions ¶
func DataSourceTencentCloudKubernetesClusterNativeNodePools ¶ added in v1.81.106
func GetOptimizedTkeLabels ¶
func GetOptimizedTkeLabels(d *schema.ResourceData, k string) []*tke.Label
func GetTkeLabels ¶
func GetTkeLabels(d *schema.ResourceData, k string) []*tke.Label
func GetTkeTags ¶ added in v1.81.79
func GetTkeTags(d *schema.ResourceData, k string) []*tke.Tag
func GetTkeTaints ¶
func GetTkeTaints(d *schema.ResourceData, k string) []*tke.Taint
func ModifySecurityServiceOfCvmInNodePool ¶
func ModifySecurityServiceOfCvmInNodePool(ctx context.Context, d *schema.ResourceData, tkeSvc *TkeService, cvmSvc *svccvm.CvmService, client *connectivity.TencentCloudClient, clusterId string, nodePoolId string) error
func ResourceTencentCloudKubernetesAddon ¶ added in v1.81.93
func ResourceTencentCloudKubernetesAddonAttachment ¶ added in v1.81.103
func ResourceTencentCloudKubernetesAddonConfig ¶ added in v1.81.109
func ResourceTencentCloudKubernetesAuthAttachment ¶ added in v1.81.103
func ResourceTencentCloudKubernetesBackupStorageLocation ¶ added in v1.81.99
func ResourceTencentCloudKubernetesCluster ¶ added in v1.81.103
func ResourceTencentCloudKubernetesClusterAttachment ¶ added in v1.81.99
func ResourceTencentCloudKubernetesClusterMasterAttachment ¶ added in v1.81.138
func ResourceTencentCloudKubernetesHealthCheckPolicy ¶ added in v1.81.123
func ResourceTencentCloudKubernetesLogConfig ¶ added in v1.81.126
func ResourceTencentCloudKubernetesNativeNodePool ¶ added in v1.81.106
func ResourceTencentCloudKubernetesScaleWorker ¶ added in v1.81.103
func ResourceTencentCloudKubernetesServerlessNodePool ¶ added in v1.81.103
func ResourceTkeGetAddonsDiffs ¶
func ResourceTkeGetAddonsDiffs(o, n []interface{}) (adds, removes, changes []interface{})
func TKEGpuArgsSetting ¶
func TkeCvmCreateInfo ¶
Types ¶
type AddonRequestBody ¶
type AddonResponseData ¶
type AddonResponseData struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *AddonResponseMeta `json:"metadata,omitempty"` Spec *AddonSpec `json:"spec,omitempty"` Status map[string]interface{} `json:"status,omitempty"` }
type AddonResponseMeta ¶
type AddonResponseMeta struct { Name *string `json:"name,omitempty"` GenerateName *string `json:"generateName,omitempty"` Namespace *string `json:"namespace,omitempty"` SelfLink *string `json:"selfLink,omitempty"` Uid *string `json:"uid,omitempty"` ResourceVersion *string `json:"resourceVersion,omitempty"` Generation *int `json:"generation,omitempty"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` Labels map[string]*string `json:"labels,omitempty"` }
type AddonSpec ¶
type AddonSpec struct { Chart *AddonSpecChart `json:"chart,omitempty"` Values *AddonSpecValues `json:"values,omitempty"` }
type AddonSpecChart ¶
type AddonSpecValues ¶
type AppStatus ¶
type AppStatus struct { Phase AppPhase `json:"phase"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` ReleaseStatus string `json:"releaseStatus,omitempty"` ReleaseLastUpdated metav1.Time `json:"releaseLastUpdated,omitempty"` Revision int64 `json:"revision,omitempty"` RollbackRevision int64 `json:"rollbackRevision,omitempty"` LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` Manifest string `json:"manifest"` }
type ClusterAdvancedSettings ¶
type ClusterAdvancedSettings struct { Ipvs bool AsEnabled bool EnableCustomizedPodCIDR bool BasePodNumber int64 ContainerRuntime string RuntimeVersion string NodeNameType string ExtraArgs ClusterExtraArgs NetworkType string IsNonStaticIpMode bool DeletionProtection bool KubeProxyMode string Property string OsCustomizeType string VpcCniType string }
type ClusterBasicSetting ¶
type ClusterBasicSetting struct { ClusterId string ClusterOs string ClusterOsType string ClusterVersion string ClusterName string ClusterDescription string ClusterLevel *string AutoUpgradeClusterLevel *bool VpcId string ProjectId int64 ClusterNodeNum int64 ClusterStatus string SubnetId string Tags map[string]string }
type ClusterCidrSettings ¶
type ClusterExtraArgs ¶
type ClusterInfo ¶
type ClusterInfo struct { ClusterBasicSetting ClusterCidrSettings ClusterAdvancedSettings DeployType string CreatedTime string }
type DescribeLogSwitchesResponse ¶
type DescribeLogSwitchesResponse struct { tchttp.BaseResponse Response *DescribeLogSwitchesResponseParams `json:"Response"` }
type EksClusterCredentialResponse ¶
type EksClusterCredentialResponse struct { Addresses []*tke.IPAddress `json:"Addresses,omitempty" name:"Addresses"` Credential *tke.ClusterCredential `json:"Credential,omitempty" name:"Credential"` PublicLB *tke.ClusterPublicLB `json:"PublicLB,omitempty" name:"PublicLB"` InternalLB *tke.ClusterInternalLB `json:"InternalLB,omitempty" name:"InternalLB"` KubeConfig string ProxyLB bool }
type EksClusterInfo ¶
type EksClusterInfo struct { ClusterId string ClusterName string ClusterDesc string K8SVersion string VpcId string SubnetIds []string Status string CreatedTime string ServiceSubnetId string ExtraParam string DnsServers []map[string]interface{} NeedDeleteCbs bool EnableVpcCoreDNS bool Tags map[string]string }
type EksService ¶
type EksService struct {
// contains filtered or unexported fields
}
func NewEksService ¶
func NewEksService(client *connectivity.TencentCloudClient) EksService
func (*EksService) CreateEksCluster ¶
func (me *EksService) CreateEksCluster(ctx context.Context, request *tke.CreateEKSClusterRequest) (id string, errRet error)
func (*EksService) CreateEksContainerInstances ¶
func (me *EksService) CreateEksContainerInstances(ctx context.Context, request *tke.CreateEKSContainerInstancesRequest) (id string, errRet error)
func (*EksService) DeleteEksCluster ¶
func (me *EksService) DeleteEksCluster(ctx context.Context, request *tke.DeleteEKSClusterRequest) (errRet error)
func (*EksService) DeleteEksContainerInstance ¶
func (me *EksService) DeleteEksContainerInstance(ctx context.Context, request *tke.DeleteEKSContainerInstancesRequest) (errRet error)
func (*EksService) DescribeEKSClusterCredential ¶
func (me *EksService) DescribeEKSClusterCredential(ctx context.Context, request *tke.DescribeEKSClusterCredentialRequest) (info *EksClusterCredentialResponse, errRet error)
func (*EksService) DescribeEKSClusterCredentialById ¶
func (me *EksService) DescribeEKSClusterCredentialById(ctx context.Context, id string) (info *EksClusterCredentialResponse, errRet error)
func (*EksService) DescribeEKSClusters ¶
func (me *EksService) DescribeEKSClusters(ctx context.Context, id string, name string) (eksClusters []EksClusterInfo, errRet error)
func (*EksService) DescribeEksCluster ¶
func (me *EksService) DescribeEksCluster(ctx context.Context, id string) (clusterInfo EksClusterInfo, has bool, errRet error)
func (*EksService) DescribeEksContainerInstanceById ¶
func (*EksService) DescribeEksContainerInstancesByFilter ¶
func (*EksService) UpdateEksCluster ¶
func (me *EksService) UpdateEksCluster(ctx context.Context, request *tke.UpdateEKSClusterRequest) (errRet error)
func (*EksService) UpdateEksContainerInstances ¶
func (me *EksService) UpdateEksContainerInstances(ctx context.Context, request *tke.UpdateEKSContainerInstanceRequest) (errRet error)
type InstanceInfo ¶
type OverrideSettings ¶
type OverrideSettings struct { Master []tke.InstanceAdvancedSettings Work []tke.InstanceAdvancedSettings }
type PrometheusConfigIds ¶
type RawValuesType ¶
type RawValuesType string
type RunInstancesForNode ¶
type Switch ¶
type Switch struct { ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` Audit *SwitchInfo `json:"Audit,omitempty" name:"Audit"` Event *SwitchInfo `json:"Event,omitempty" name:"Event"` Log *SwitchInfo `json:"Log,omitempty" name:"Log"` }
type SwitchInfo ¶
type SwitchInfo struct { Enable *bool `json:"Enable,omitempty" name:"Enable"` LogsetId *string `json:"LogsetId,omitempty" name:"LogsetId"` TopicId *string `json:"TopicId,omitempty" name:"TopicId"` Version *string `json:"Version,omitempty" name:"Version"` UpgradeAble *bool `json:"UpgradeAble,omitempty" name:"UpgradeAble"` }
type TkeService ¶
type TkeService struct {
// contains filtered or unexported fields
}
func NewTkeService ¶
func NewTkeService(client *connectivity.TencentCloudClient) TkeService
func (*TkeService) AcquireClusterAdminRole ¶
func (me *TkeService) AcquireClusterAdminRole(ctx context.Context, clusterId string) (errRet error)
func (*TkeService) AddVpcCniSubnets ¶
func (*TkeService) CheckClusterVersion ¶
func (*TkeService) CheckInstancesUpgradeAble ¶
func (*TkeService) CheckOneOfClusterNodeReady ¶
func (*TkeService) CreateCluster ¶
func (me *TkeService) CreateCluster(ctx context.Context, basic ClusterBasicSetting, advanced ClusterAdvancedSettings, cvms RunInstancesForNode, iAdvanced InstanceAdvancedSettings, cidrSetting ClusterCidrSettings, tags map[string]string, existedInstance []*tke.ExistedInstancesForNode, overrideSettings *OverrideSettings, iDiskMountSettings []*tke.InstanceDataDiskMountSetting, extensionAddons []*tke.ExtensionAddon, ) (id string, errRet error)
func (*TkeService) CreateClusterAsGroup ¶
func (me *TkeService) CreateClusterAsGroup(ctx context.Context, id, groupPara, configPara string, labels []*tke.Label, iAdvanced InstanceAdvancedSettings) (asGroupId string, errRet error)
func (*TkeService) CreateClusterEndpoint ¶
func (me *TkeService) CreateClusterEndpoint(ctx context.Context, id string, subnetId, securityGroupId string, internet bool, domain string, extensiveParameters string) (errRet error)
open internet access
func (*TkeService) CreateClusterInstances ¶
func (me *TkeService) CreateClusterInstances(ctx context.Context, id string, runInstancePara string, iAdvanced tke.InstanceAdvancedSettings) (instanceIds []string, errRet error)
func (*TkeService) CreateClusterNodePool ¶
func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, enableAutoScale bool, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, iAdvanced tke.InstanceAdvancedSettings, deletionProtection bool, tags []*tke.Tag) (asGroupId string, errRet error)
func (*TkeService) CreateClusterVirtualNodePool ¶
func (me *TkeService) CreateClusterVirtualNodePool(ctx context.Context, request *tke.CreateClusterVirtualNodePoolRequest) (id string, errRet error)
func (*TkeService) CreateExtensionAddon ¶
func (me *TkeService) CreateExtensionAddon(ctx context.Context, clusterName, reqBody string) (errRet error)
func (*TkeService) DeleteBackupStorageLocation ¶
func (me *TkeService) DeleteBackupStorageLocation(ctx context.Context, name string) (errRet error)
func (*TkeService) DeleteCluster ¶
func (me *TkeService) DeleteCluster(ctx context.Context, id string) (errRet error)
func (*TkeService) DeleteClusterAsGroups ¶
func (me *TkeService) DeleteClusterAsGroups(ctx context.Context, id, asGroupId string) (errRet error)
func (*TkeService) DeleteClusterEndpoint ¶
func (*TkeService) DeleteClusterInstances ¶
func (me *TkeService) DeleteClusterInstances(ctx context.Context, id string, instanceIds []string) (errRet error)
if cluster is creating, return error:TencentCloudSDKError] Code=tccommon.InternalError.ClusterState
func (*TkeService) DeleteClusterNodePool ¶
func (*TkeService) DeleteClusterVirtualNodePool ¶
func (me *TkeService) DeleteClusterVirtualNodePool(ctx context.Context, request *tke.DeleteClusterVirtualNodePoolRequest) (errRet error)
func (*TkeService) DeleteExtensionAddon ¶
func (me *TkeService) DeleteExtensionAddon(ctx context.Context, clusterName, addon string) (errRet error)
func (*TkeService) DeleteKubernetesAddonAttachmentById ¶ added in v1.81.103
func (me *TkeService) DeleteKubernetesAddonAttachmentById(ctx context.Context) (errRet error)
func (*TkeService) DeleteKubernetesAuthAttachmentById ¶ added in v1.81.103
func (me *TkeService) DeleteKubernetesAuthAttachmentById(ctx context.Context, clusterId string) (errRet error)
func (*TkeService) DeleteTkeEncryptionProtectionById ¶
func (me *TkeService) DeleteTkeEncryptionProtectionById(ctx context.Context, clusterId string) (errRet error)
func (*TkeService) DescribeBackupStorageLocations ¶
func (me *TkeService) DescribeBackupStorageLocations(ctx context.Context, names []string) (locations []*tke.BackupStorageLocation, errRet error)
func (*TkeService) DescribeCluster ¶
func (me *TkeService) DescribeCluster(ctx context.Context, id string) ( clusterInfo ClusterInfo, has bool, errRet error, )
func (*TkeService) DescribeClusterAsGroupsByGroupId ¶
func (me *TkeService) DescribeClusterAsGroupsByGroupId(ctx context.Context, id string, groupId string) (clusterAsGroupSet *tke.ClusterAsGroup, errRet error)
func (*TkeService) DescribeClusterAuthenticationOptions ¶
func (me *TkeService) DescribeClusterAuthenticationOptions(ctx context.Context, id string) (options *tke.ServiceAccountAuthenticationOptions, state string, oidcConfig *tke.OIDCConfigAuthenticationOptions, errRet error)
DescribeClusterAuthenticationOptions Field `ServiceAccounts.AutoCreateDiscoveryAnonymousAuth` will always return null by design
func (*TkeService) DescribeClusterCommonNames ¶
func (me *TkeService) DescribeClusterCommonNames(ctx context.Context, request *tke.DescribeClusterCommonNamesRequest) (commonNames []*tke.CommonName, errRet error)
func (*TkeService) DescribeClusterConfig ¶
func (*TkeService) DescribeClusterEndpointStatus ¶
func (*TkeService) DescribeClusterEndpoints ¶
func (me *TkeService) DescribeClusterEndpoints(ctx context.Context, id string) (response tke.DescribeClusterEndpointsResponseParams, errRet error)
func (*TkeService) DescribeClusterExtraArgs ¶
func (me *TkeService) DescribeClusterExtraArgs(ctx context.Context, clusterId string) (extraArgs *tke.ClusterExtraArgs, errRet error)
func (*TkeService) DescribeClusterInstances ¶
func (me *TkeService) DescribeClusterInstances(ctx context.Context, id string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
func (*TkeService) DescribeClusterInstancesByRole ¶
func (me *TkeService) DescribeClusterInstancesByRole(ctx context.Context, id, role string) (masters []InstanceInfo, workers []InstanceInfo, errRet error)
func (*TkeService) DescribeClusterLevelAttribute ¶
func (me *TkeService) DescribeClusterLevelAttribute(ctx context.Context, id string) (clusterLevels []*tke.ClusterLevelAttribute, errRet error)
func (*TkeService) DescribeClusterNodePoolGlobalConfig ¶
func (me *TkeService) DescribeClusterNodePoolGlobalConfig(ctx context.Context, clusterId string) ( npGlobalConfig *tke.ClusterAsGroupOption, errRet error, )
func (*TkeService) DescribeClusterSecurity ¶
func (me *TkeService) DescribeClusterSecurity(ctx context.Context, id string) (ret *tke.DescribeClusterSecurityResponse, errRet error)
func (*TkeService) DescribeClusterVirtualNode ¶
func (me *TkeService) DescribeClusterVirtualNode(ctx context.Context, clusterId string) (virtualNodes []tke.VirtualNode, errRet error)
func (*TkeService) DescribeClusters ¶
func (me *TkeService) DescribeClusters(ctx context.Context, id string, name string) (clusterInfos []ClusterInfo, errRet error)
func (*TkeService) DescribeEnableVpcCniProgress ¶
func (*TkeService) DescribeExtensionAddon ¶
func (*TkeService) DescribeExtensionAddonList ¶
func (*TkeService) DescribeExternalNodeSupportConfig ¶
func (me *TkeService) DescribeExternalNodeSupportConfig(ctx context.Context, clusterId string) (resp *tke.DescribeExternalNodeSupportConfigResponseParams, errRet error)
func (*TkeService) DescribeIPAMD ¶
func (me *TkeService) DescribeIPAMD(ctx context.Context, clusterId string) (resp *tke.DescribeIPAMDResponseParams, errRet error)
func (*TkeService) DescribeImages ¶
func (me *TkeService) DescribeImages(ctx context.Context) (imageIds []string, errRet error)
func (*TkeService) DescribeKubernetesAddonAttachmentById ¶ added in v1.81.103
func (me *TkeService) DescribeKubernetesAddonAttachmentById(ctx context.Context) (ret *tke.ForwardApplicationRequestV3ResponseParams, errRet error)
func (*TkeService) DescribeKubernetesAddonById ¶ added in v1.81.93
func (*TkeService) DescribeKubernetesAuthAttachmentById ¶ added in v1.81.103
func (me *TkeService) DescribeKubernetesAuthAttachmentById(ctx context.Context, clusterId string) (ret *tke.DescribeClusterAuthenticationOptionsResponseParams, errRet error)
func (*TkeService) DescribeKubernetesAvailableClusterVersionsByFilter ¶
func (me *TkeService) DescribeKubernetesAvailableClusterVersionsByFilter(ctx context.Context, param map[string]interface{}) (ret *tke.DescribeAvailableClusterVersionResponseParams, errRet error)
func (*TkeService) DescribeKubernetesBackupStorageLocationById ¶ added in v1.81.99
func (me *TkeService) DescribeKubernetesBackupStorageLocationById(ctx context.Context, name string) (ret *tke.BackupStorageLocation, errRet error)
func (*TkeService) DescribeKubernetesChartsByFilter ¶ added in v1.81.99
func (*TkeService) DescribeKubernetesClusterAttachmentById ¶ added in v1.81.99
func (*TkeService) DescribeKubernetesClusterAttachmentById1 ¶ added in v1.81.99
func (*TkeService) DescribeKubernetesClusterAttachmentById2 ¶ added in v1.81.99
func (*TkeService) DescribeKubernetesClusterAuthenticationOptionsByFilter ¶ added in v1.81.99
func (me *TkeService) DescribeKubernetesClusterAuthenticationOptionsByFilter(ctx context.Context, param map[string]interface{}) (ret *tke.DescribeClusterAuthenticationOptionsResponseParams, errRet error)
func (*TkeService) DescribeKubernetesClusterById ¶ added in v1.81.103
func (*TkeService) DescribeKubernetesClusterById1 ¶ added in v1.81.103
func (me *TkeService) DescribeKubernetesClusterById1(ctx context.Context, clusterId string) (ret *tke.DescribeClusterInstancesResponseParams, errRet error)
func (*TkeService) DescribeKubernetesClusterById2 ¶ added in v1.81.103
func (me *TkeService) DescribeKubernetesClusterById2(ctx context.Context, clusterId string) (ret *tke.DescribeClusterSecurityResponseParams, errRet error)
func (*TkeService) DescribeKubernetesClusterCommonNamesByFilter ¶ added in v1.81.99
func (me *TkeService) DescribeKubernetesClusterCommonNamesByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.CommonName, errRet error)
func (*TkeService) DescribeKubernetesClusterInstancesByFilter ¶
func (*TkeService) DescribeKubernetesClusterLevelsByFilter ¶ added in v1.81.99
func (me *TkeService) DescribeKubernetesClusterLevelsByFilter(ctx context.Context, param map[string]interface{}) (ret []*tke.ClusterLevelAttribute, errRet error)
func (*TkeService) DescribeKubernetesClusterMasterAttachmentById ¶ added in v1.81.138
func (*TkeService) DescribeKubernetesClusterMasterAttachmentById1 ¶ added in v1.81.138
func (*TkeService) DescribeKubernetesClusterMasterAttachmentById2 ¶ added in v1.81.138
func (me *TkeService) DescribeKubernetesClusterMasterAttachmentById2(ctx context.Context, clusterId string, instanceId string, nodeRole string) (ret *tke.DescribeClusterInstancesResponseParams, errRet error)
func (*TkeService) DescribeKubernetesClusterNativeNodePoolsByFilter ¶ added in v1.81.106
func (*TkeService) DescribeKubernetesClusterNodePoolsByFilter ¶
func (*TkeService) DescribeKubernetesClustersByFilter ¶ added in v1.81.99
func (*TkeService) DescribeKubernetesEncryptionProtectionById ¶ added in v1.81.99
func (me *TkeService) DescribeKubernetesEncryptionProtectionById(ctx context.Context, clusterId string) (ret *tke.DescribeEncryptionStatusResponseParams, errRet error)
func (*TkeService) DescribeKubernetesHealthCheckPolicyById ¶ added in v1.81.123
func (me *TkeService) DescribeKubernetesHealthCheckPolicyById(ctx context.Context, clusterId string, name string) (ret *tke2.HealthCheckPolicy, errRet error)
func (*TkeService) DescribeKubernetesLogConfigById ¶ added in v1.81.126
func (me *TkeService) DescribeKubernetesLogConfigById(ctx context.Context, clusterId string, logConfigName string, clusterType string) (ret *tke.DescribeLogConfigsResponseParams, errRet error)
func (*TkeService) DescribeKubernetesNativeNodePoolById ¶ added in v1.81.106
func (*TkeService) DescribeKubernetesNodePoolById ¶ added in v1.81.103
func (*TkeService) DescribeKubernetesNodePoolById1 ¶ added in v1.81.103
func (*TkeService) DescribeKubernetesScaleWorkerById ¶ added in v1.81.103
func (me *TkeService) DescribeKubernetesScaleWorkerById(ctx context.Context, clusterId string) (ret *tke.DescribeClustersResponseParams, errRet error)
func (*TkeService) DescribeKubernetesScaleWorkerById1 ¶ added in v1.81.103
func (me *TkeService) DescribeKubernetesScaleWorkerById1(ctx context.Context) (ret *cvm.DescribeInstancesResponseParams, errRet error)
func (*TkeService) DescribeKubernetesServerlessNodePoolById ¶ added in v1.81.103
func (me *TkeService) DescribeKubernetesServerlessNodePoolById(ctx context.Context, clusterId string, nodePoolId string) (ret *tke.VirtualNodePool, errRet error)
func (*TkeService) DescribeLogSwitches ¶
func (*TkeService) DescribeNodePool ¶
func (*TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId ¶
func (me *TkeService) DescribeServerlessNodePoolByClusterIdAndNodePoolId(ctx context.Context, clusterId, nodePoolId string) (instance *tke.VirtualNodePool, has bool, errRet error)
func (*TkeService) DescribeTkeEncryptionProtectionById ¶
func (me *TkeService) DescribeTkeEncryptionProtectionById(ctx context.Context, clusterId string) (encryptionProtection *tke.DescribeEncryptionStatusResponseParams, errRet error)
func (*TkeService) DisableClusterAudit ¶
func (me *TkeService) DisableClusterAudit(ctx context.Context, request *tke.DisableClusterAuditRequest) (errRet error)
func (*TkeService) DisableEventPersistence ¶
func (me *TkeService) DisableEventPersistence(ctx context.Context, request *tke.DisableEventPersistenceRequest) (errRet error)
func (*TkeService) DisableVpcCniNetworkType ¶
func (me *TkeService) DisableVpcCniNetworkType(ctx context.Context, id string) (errRet error)
func (*TkeService) EnableClusterAudit ¶
func (me *TkeService) EnableClusterAudit(ctx context.Context, request *tke.EnableClusterAuditRequest) (errRet error)
func (*TkeService) EnableEventPersistence ¶
func (me *TkeService) EnableEventPersistence(ctx context.Context, request *tke.EnableEventPersistenceRequest) (errRet error)
func (*TkeService) EnableVpcCniNetworkType ¶
func (*TkeService) GetAddonNameFromJson ¶
func (me *TkeService) GetAddonNameFromJson(reqJson string) (name string, err error)
func (*TkeService) GetAddonReqBody ¶
func (*TkeService) GetAddonsPath ¶
func (me *TkeService) GetAddonsPath(cluster, addon string) string
func (*TkeService) GetTkeAppChartList ¶
func (me *TkeService) GetTkeAppChartList(ctx context.Context, request *tke.GetTkeAppChartListRequest) (info []*tke.AppChart, errRet error)
func (*TkeService) GetUpgradeInstanceResult ¶
func (*TkeService) InstallLogAgent ¶
func (me *TkeService) InstallLogAgent(ctx context.Context, request *tke.InstallLogAgentRequest) (errRet error)
func (*TkeService) ModifyClusterAsGroupAttribute ¶
func (*TkeService) ModifyClusterAttribute ¶
func (*TkeService) ModifyClusterAuthenticationOptions ¶
func (me *TkeService) ModifyClusterAuthenticationOptions(ctx context.Context, request *tke.ModifyClusterAuthenticationOptionsRequest) (errRet error)
func (*TkeService) ModifyClusterEndpointSG ¶
func (*TkeService) ModifyClusterEndpointSP ¶
func (*TkeService) ModifyClusterNodePool ¶
func (*TkeService) ModifyClusterNodePoolDesiredCapacity ¶
func (*TkeService) ModifyClusterNodePoolGlobalConfig ¶
func (me *TkeService) ModifyClusterNodePoolGlobalConfig(ctx context.Context, request *tke.ModifyClusterAsGroupOptionAttributeRequest) (errRet error)
node pool global config
func (*TkeService) ModifyClusterNodePoolInstanceTypes ¶
func (*TkeService) ModifyClusterVersion ¶
func (*TkeService) ModifyClusterVirtualNodePool ¶
func (me *TkeService) ModifyClusterVirtualNodePool(ctx context.Context, request *tke.ModifyClusterVirtualNodePoolRequest) (errRet error)
func (*TkeService) ModifyDeletionProtection ¶
func (*TkeService) PollingAddonsPhase ¶
func (me *TkeService) PollingAddonsPhase(ctx context.Context, clusterId, addonName string, addonResponseData *AddonResponseData) (string, bool, error)
func (*TkeService) ProcessExtensionAddons ¶
func (me *TkeService) ProcessExtensionAddons(ctx context.Context, request *tke.ForwardApplicationRequestV3Request) (response *tke.ForwardApplicationRequestV3Response, err error)
func (*TkeService) SwitchClusterAudit ¶
func (*TkeService) SwitchEventPersistence ¶
func (*TkeService) SwitchLogAgent ¶
func (*TkeService) TkeEncryptionProtectionStateRefreshFunc ¶
func (me *TkeService) TkeEncryptionProtectionStateRefreshFunc(clusterId string, failStates []string) resource.StateRefreshFunc
func (*TkeService) UninstallLogAgent ¶
func (me *TkeService) UninstallLogAgent(ctx context.Context, request *tke.UninstallLogAgentRequest) (errRet error)
func (*TkeService) UpdateExtensionAddon ¶
func (me *TkeService) UpdateExtensionAddon(ctx context.Context, clusterName, addon, reqBody string) (errRet error)
func (*TkeService) UpgradeClusterInstances ¶
func (*TkeService) WaitForAuthenticationOptionsUpdateSuccess ¶
func (me *TkeService) WaitForAuthenticationOptionsUpdateSuccess(ctx context.Context, id string) (info *tke.ServiceAccountAuthenticationOptions, oidc *tke.OIDCConfigAuthenticationOptions, errRet error)
Source Files ¶
- data_source_tc_container_cluster_instances.go
- data_source_tc_container_clusters.go
- data_source_tc_eks_cluster_credential.go
- data_source_tc_eks_clusters.go
- data_source_tc_kubernetes_available_cluster_versions.go
- data_source_tc_kubernetes_available_cluster_versions_extension.go
- data_source_tc_kubernetes_charts.go
- data_source_tc_kubernetes_charts_extension.go
- data_source_tc_kubernetes_cluster_authentication_options.go
- data_source_tc_kubernetes_cluster_authentication_options_extension.go
- data_source_tc_kubernetes_cluster_common_names.go
- data_source_tc_kubernetes_cluster_common_names_extension.go
- data_source_tc_kubernetes_cluster_instances.go
- data_source_tc_kubernetes_cluster_instances_extension.go
- data_source_tc_kubernetes_cluster_levels.go
- data_source_tc_kubernetes_cluster_levels_extension.go
- data_source_tc_kubernetes_cluster_native_node_pools.go
- data_source_tc_kubernetes_cluster_native_node_pools_extension.go
- data_source_tc_kubernetes_cluster_node_pools.go
- data_source_tc_kubernetes_cluster_node_pools_extension.go
- data_source_tc_kubernetes_clusters.go
- data_source_tc_kubernetes_clusters_extension.go
- extension_tke.go
- resource_tc_container_cluster.go
- resource_tc_container_cluster_instance.go
- resource_tc_eks_cluster.go
- resource_tc_eks_container_instance.go
- resource_tc_kubernetes_addon.go
- resource_tc_kubernetes_addon_attachment.go
- resource_tc_kubernetes_addon_attachment_extension.go
- resource_tc_kubernetes_addon_config.go
- resource_tc_kubernetes_as_scaling_group.go
- resource_tc_kubernetes_auth_attachment.go
- resource_tc_kubernetes_auth_attachment_extension.go
- resource_tc_kubernetes_backup_storage_location.go
- resource_tc_kubernetes_backup_storage_location_extension.go
- resource_tc_kubernetes_cluster.go
- resource_tc_kubernetes_cluster_attachment.go
- resource_tc_kubernetes_cluster_attachment_extension.go
- resource_tc_kubernetes_cluster_endpoint.go
- resource_tc_kubernetes_cluster_extension.go
- resource_tc_kubernetes_cluster_master_attachment.go
- resource_tc_kubernetes_cluster_master_attachment_extension.go
- resource_tc_kubernetes_encryption_protection.go
- resource_tc_kubernetes_encryption_protection_extension.go
- resource_tc_kubernetes_health_check_policy.go
- resource_tc_kubernetes_health_check_policy_extension.go
- resource_tc_kubernetes_log_config.go
- resource_tc_kubernetes_log_config_extension.go
- resource_tc_kubernetes_native_node_pool.go
- resource_tc_kubernetes_native_node_pool_extension.go
- resource_tc_kubernetes_node_pool.go
- resource_tc_kubernetes_node_pool_extension.go
- resource_tc_kubernetes_scale_worker.go
- resource_tc_kubernetes_scale_worker_extension.go
- resource_tc_kubernetes_serverless_node_pool.go
- resource_tc_kubernetes_serverless_node_pool_extension.go
- service_tencentcloud_eks.go
- service_tencentcloud_tke.go
- service_tencentcloud_tke_addons.go