kubernetes_service

package
v0.1.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsEksCluster

type AwsEksCluster struct {
	*common.AwsResource     `hcl:",squash" default:"name=aws_eks_cluster"`
	RoleArn                 string                  `hcl:"role_arn,expr"`
	VpcConfig               VpcConfig               `hcl:"vpc_config"`
	KubernetesNetworkConfig KubernetesNetworkConfig `hcl:"kubernetes_network_config"`
	Name                    string                  `hcl:"name"`

	// outputs
	Endpoint             string                 `json:"endpoint" hcle:"omitempty"`
	CertificateAuthority []CertificateAuthority `json:"certificate_authority"  hcle:"omitempty"`
	Arn                  string                 `json:"arn" hcle:"omitempty"`
}

type AzureEksCluster

type AzureEksCluster struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_kubernetes_cluster"`
	DefaultNodePool    *kubernetes_node_pool.AzureKubernetesNodePool `hcl:"default_node_pool"`
	DnsPrefix          string                                        `hcl:"dns_prefix"`
	Identity           []AzureIdentity                               `hcl:"identity,blocks"`
	NetworkProfile     NetworkProfile                                `hcl:"network_profile"`

	// outputs
	KubeConfigRaw string            `json:"kube_config_raw" hcle:"omitempty"`
	KubeConfig    []AzureKubeConfig `json:"kube_config" hcle:"omitempty"`
}

type AzureIdentity

type AzureIdentity struct {
	PrincipalId string `hcl:"principal_id,expr"  hcle:"omitempty"`
	TenantId    string `hcl:"tenant_id,expr"  hcle:"omitempty"`
	Type        string `hcl:"type" hcle:"omitempty"`
}

type AzureKubeConfig added in v0.1.52

type AzureKubeConfig struct {
	Host                 string `json:"host" hcle:"omitempty"`
	ClusterCaCertificate string `json:"cluster_ca_certificate" hcle:"omitempty"`
}

type AzureUserAssignedIdentity

type AzureUserAssignedIdentity struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_user_assigned_identity"`
}

func (AzureUserAssignedIdentity) GetIdentity

func (r AzureUserAssignedIdentity) GetIdentity() AzureIdentity

type CertificateAuthority added in v0.1.46

type CertificateAuthority struct {
	Data string `json:"data"  hcle:"omitempty"`
}

type GoogleContainerCluster added in v0.1.52

type GoogleContainerCluster struct {
	*common.GcpResource   `hcl:",squash"  default:"name=google_container_cluster"`
	RemoveDefaultNodePool bool                                           `hcl:"remove_default_node_pool"`
	InitialNodeCount      int                                            `hcl:"initial_node_count"`
	Subnetwork            string                                         `hcl:"subnetwork,expr"`
	Network               string                                         `hcl:"network,expr"`
	IpAllocationPolicy    GoogleContainerClusterIpAllocationPolicy       `hcl:"ip_allocation_policy"`
	Location              string                                         `hcl:"location"`
	NodeConfig            kubernetes_node_pool.GoogleContainerNodeConfig `hcl:"node_config"`

	// outputs
	Endpoint   string                       `json:"endpoint" hcle:"omitempty"`
	MasterAuth []GoogleContainerClusterAuth `json:"master_auth" hcle:"omitempty"`
}

type GoogleContainerClusterAuth added in v0.1.52

type GoogleContainerClusterAuth struct {
	ClusterCaCertificate string `json:"cluster_ca_certificate"`
	ClientCertificate    string `json:"client_certificate"`
	ClientKey            string `json:"client_key"`
}

type GoogleContainerClusterIpAllocationPolicy added in v0.1.52

type GoogleContainerClusterIpAllocationPolicy struct {
	//ClusterIpv4CidrBlock  string `hcl:"cluster_ipv_4_cidr_block"`
	ServicesIpv4CidrBlock string `hcl:"services_ipv4_cidr_block"`
}

type KubeConfig added in v0.1.46

type KubeConfig struct {
	ApiVersion     string                   `yaml:"apiVersion"`
	Clusters       []NamedKubeConfigCluster `yaml:"clusters"`
	Contexts       []NamedKubeConfigContext `yaml:"contexts"`
	CurrentContext string                   `yaml:"current-context"`
	Users          []KubeConfigUser         `yaml:"users"`
	Kind           string                   `yaml:"kind"`
}

type KubeConfigCluster added in v0.1.52

type KubeConfigCluster struct {
	CertificateAuthorityData string `yaml:"certificate-authority-data"`
	Server                   string `yaml:"server"`
}

type KubeConfigContext added in v0.1.52

type KubeConfigContext struct {
	User    string `yaml:"user"`
	Cluster string `yaml:"cluster"`
}

type KubeConfigExec added in v0.1.52

type KubeConfigExec struct {
	ApiVersion         string   `yaml:"apiVersion"`
	Command            string   `yaml:"command"`
	Args               []string `yaml:"args,omitempty"`
	InteractiveMode    string   `yaml:"interactiveMode"`
	ProvideClusterInfo bool     `yaml:"provideClusterInfo,omitempty"`
	InstallHint        string   `yaml:"installHint,omitempty"`
}

type KubeConfigUser added in v0.1.52

type KubeConfigUser struct {
	Name string `yaml:"name"`
	User struct {
		Exec KubeConfigExec `yaml:"exec"`
	} `yaml:"user"`
}

type KubernetesNetworkConfig added in v0.1.37

type KubernetesNetworkConfig struct {
	ServiceIpv4Cidr string `hcl:"service_ipv4_cidr"`
}

type NamedKubeConfigCluster added in v0.1.52

type NamedKubeConfigCluster struct {
	Name    string            `yaml:"name"`
	Cluster KubeConfigCluster `yaml:"cluster"`
}

type NamedKubeConfigContext added in v0.1.52

type NamedKubeConfigContext struct {
	Name    string            `yaml:"name"`
	Context KubeConfigContext `yaml:"context"`
}

type NetworkProfile added in v0.1.37

type NetworkProfile struct {
	NetworkPlugin    string `hcl:"network_plugin"`
	DnsServiceIp     string `hcl:"dns_service_ip"`
	DockerBridgeCidr string `hcl:"docker_bridge_cidr"`
	ServiceCidr      string `hcl:"service_cidr"`
}

type VpcConfig

type VpcConfig struct {
	SubnetIds             []string `hcl:"subnet_ids,expr"`
	EndpointPrivateAccess bool     `hcl:"endpoint_private_access"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL