octopusdeploy.KubernetesAgentDeploymentTarget
Explore with Pulumi AI
This resource manages Kubernetes agent deployment targets in Octopus Deploy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const minimal = new octopusdeploy.KubernetesAgentDeploymentTarget("minimal", {
environments: ["environments-1"],
roles: [
"role-1",
"role-2",
],
thumbprint: "96203ED84246201C26A2F4360D7CBC36AC1D232D",
uri: "poll://kcxzcv2fpsxkn6tk9u6d/",
});
const optionals = new octopusdeploy.KubernetesAgentDeploymentTarget("optionals", {
defaultNamespace: "kubernetes-namespace",
environments: ["environments-1"],
isDisabled: true,
machinePolicyId: "machinepolicies-1",
roles: [
"role-1",
"role-2",
],
thumbprint: "96203ED84246201C26A2F4360D7CBC36AC1D232D",
upgradeLocked: true,
uri: "poll://kcxzcv2fpsxkn6tk9u6d/",
});
const tenantedAgent = new octopusdeploy.KubernetesAgentDeploymentTarget("tenantedAgent", {
environments: ["environments-1"],
roles: [
"role-1",
"role-2",
],
tenantTags: ["TagSets-1/Tags-1"],
tenantedDeploymentParticipation: "Tenanted",
tenants: ["tenants-1"],
thumbprint: "96203ED84246201C26A2F4360D7CBC36AC1D232D",
uri: "poll://kcxzcv2fpsxkn6tk9u6d/",
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
minimal = octopusdeploy.KubernetesAgentDeploymentTarget("minimal",
environments=["environments-1"],
roles=[
"role-1",
"role-2",
],
thumbprint="96203ED84246201C26A2F4360D7CBC36AC1D232D",
uri="poll://kcxzcv2fpsxkn6tk9u6d/")
optionals = octopusdeploy.KubernetesAgentDeploymentTarget("optionals",
default_namespace="kubernetes-namespace",
environments=["environments-1"],
is_disabled=True,
machine_policy_id="machinepolicies-1",
roles=[
"role-1",
"role-2",
],
thumbprint="96203ED84246201C26A2F4360D7CBC36AC1D232D",
upgrade_locked=True,
uri="poll://kcxzcv2fpsxkn6tk9u6d/")
tenanted_agent = octopusdeploy.KubernetesAgentDeploymentTarget("tenantedAgent",
environments=["environments-1"],
roles=[
"role-1",
"role-2",
],
tenant_tags=["TagSets-1/Tags-1"],
tenanted_deployment_participation="Tenanted",
tenants=["tenants-1"],
thumbprint="96203ED84246201C26A2F4360D7CBC36AC1D232D",
uri="poll://kcxzcv2fpsxkn6tk9u6d/")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := octopusdeploy.NewKubernetesAgentDeploymentTarget(ctx, "minimal", &octopusdeploy.KubernetesAgentDeploymentTargetArgs{
Environments: pulumi.StringArray{
pulumi.String("environments-1"),
},
Roles: pulumi.StringArray{
pulumi.String("role-1"),
pulumi.String("role-2"),
},
Thumbprint: pulumi.String("96203ED84246201C26A2F4360D7CBC36AC1D232D"),
Uri: pulumi.String("poll://kcxzcv2fpsxkn6tk9u6d/"),
})
if err != nil {
return err
}
_, err = octopusdeploy.NewKubernetesAgentDeploymentTarget(ctx, "optionals", &octopusdeploy.KubernetesAgentDeploymentTargetArgs{
DefaultNamespace: pulumi.String("kubernetes-namespace"),
Environments: pulumi.StringArray{
pulumi.String("environments-1"),
},
IsDisabled: pulumi.Bool(true),
MachinePolicyId: pulumi.String("machinepolicies-1"),
Roles: pulumi.StringArray{
pulumi.String("role-1"),
pulumi.String("role-2"),
},
Thumbprint: pulumi.String("96203ED84246201C26A2F4360D7CBC36AC1D232D"),
UpgradeLocked: pulumi.Bool(true),
Uri: pulumi.String("poll://kcxzcv2fpsxkn6tk9u6d/"),
})
if err != nil {
return err
}
_, err = octopusdeploy.NewKubernetesAgentDeploymentTarget(ctx, "tenantedAgent", &octopusdeploy.KubernetesAgentDeploymentTargetArgs{
Environments: pulumi.StringArray{
pulumi.String("environments-1"),
},
Roles: pulumi.StringArray{
pulumi.String("role-1"),
pulumi.String("role-2"),
},
TenantTags: pulumi.StringArray{
pulumi.String("TagSets-1/Tags-1"),
},
TenantedDeploymentParticipation: pulumi.String("Tenanted"),
Tenants: pulumi.StringArray{
pulumi.String("tenants-1"),
},
Thumbprint: pulumi.String("96203ED84246201C26A2F4360D7CBC36AC1D232D"),
Uri: pulumi.String("poll://kcxzcv2fpsxkn6tk9u6d/"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() =>
{
var minimal = new Octopusdeploy.KubernetesAgentDeploymentTarget("minimal", new()
{
Environments = new[]
{
"environments-1",
},
Roles = new[]
{
"role-1",
"role-2",
},
Thumbprint = "96203ED84246201C26A2F4360D7CBC36AC1D232D",
Uri = "poll://kcxzcv2fpsxkn6tk9u6d/",
});
var optionals = new Octopusdeploy.KubernetesAgentDeploymentTarget("optionals", new()
{
DefaultNamespace = "kubernetes-namespace",
Environments = new[]
{
"environments-1",
},
IsDisabled = true,
MachinePolicyId = "machinepolicies-1",
Roles = new[]
{
"role-1",
"role-2",
},
Thumbprint = "96203ED84246201C26A2F4360D7CBC36AC1D232D",
UpgradeLocked = true,
Uri = "poll://kcxzcv2fpsxkn6tk9u6d/",
});
var tenantedAgent = new Octopusdeploy.KubernetesAgentDeploymentTarget("tenantedAgent", new()
{
Environments = new[]
{
"environments-1",
},
Roles = new[]
{
"role-1",
"role-2",
},
TenantTags = new[]
{
"TagSets-1/Tags-1",
},
TenantedDeploymentParticipation = "Tenanted",
Tenants = new[]
{
"tenants-1",
},
Thumbprint = "96203ED84246201C26A2F4360D7CBC36AC1D232D",
Uri = "poll://kcxzcv2fpsxkn6tk9u6d/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.KubernetesAgentDeploymentTarget;
import com.pulumi.octopusdeploy.KubernetesAgentDeploymentTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var minimal = new KubernetesAgentDeploymentTarget("minimal", KubernetesAgentDeploymentTargetArgs.builder()
.environments("environments-1")
.roles(
"role-1",
"role-2")
.thumbprint("96203ED84246201C26A2F4360D7CBC36AC1D232D")
.uri("poll://kcxzcv2fpsxkn6tk9u6d/")
.build());
var optionals = new KubernetesAgentDeploymentTarget("optionals", KubernetesAgentDeploymentTargetArgs.builder()
.defaultNamespace("kubernetes-namespace")
.environments("environments-1")
.isDisabled(true)
.machinePolicyId("machinepolicies-1")
.roles(
"role-1",
"role-2")
.thumbprint("96203ED84246201C26A2F4360D7CBC36AC1D232D")
.upgradeLocked(true)
.uri("poll://kcxzcv2fpsxkn6tk9u6d/")
.build());
var tenantedAgent = new KubernetesAgentDeploymentTarget("tenantedAgent", KubernetesAgentDeploymentTargetArgs.builder()
.environments("environments-1")
.roles(
"role-1",
"role-2")
.tenantTags("TagSets-1/Tags-1")
.tenantedDeploymentParticipation("Tenanted")
.tenants("tenants-1")
.thumbprint("96203ED84246201C26A2F4360D7CBC36AC1D232D")
.uri("poll://kcxzcv2fpsxkn6tk9u6d/")
.build());
}
}
resources:
minimal:
type: octopusdeploy:KubernetesAgentDeploymentTarget
properties:
environments:
- environments-1
roles:
- role-1
- role-2
thumbprint: 96203ED84246201C26A2F4360D7CBC36AC1D232D
uri: poll://kcxzcv2fpsxkn6tk9u6d/
optionals:
type: octopusdeploy:KubernetesAgentDeploymentTarget
properties:
defaultNamespace: kubernetes-namespace
environments:
- environments-1
isDisabled: true
machinePolicyId: machinepolicies-1
roles:
- role-1
- role-2
thumbprint: 96203ED84246201C26A2F4360D7CBC36AC1D232D
upgradeLocked: true
uri: poll://kcxzcv2fpsxkn6tk9u6d/
tenantedAgent:
type: octopusdeploy:KubernetesAgentDeploymentTarget
properties:
environments:
- environments-1
roles:
- role-1
- role-2
tenantTags:
- TagSets-1/Tags-1
tenantedDeploymentParticipation: Tenanted
tenants:
- tenants-1
thumbprint: 96203ED84246201C26A2F4360D7CBC36AC1D232D
uri: poll://kcxzcv2fpsxkn6tk9u6d/
Create KubernetesAgentDeploymentTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesAgentDeploymentTarget(name: string, args: KubernetesAgentDeploymentTargetArgs, opts?: CustomResourceOptions);
@overload
def KubernetesAgentDeploymentTarget(resource_name: str,
args: KubernetesAgentDeploymentTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesAgentDeploymentTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
roles: Optional[Sequence[str]] = None,
uri: Optional[str] = None,
environments: Optional[Sequence[str]] = None,
thumbprint: Optional[str] = None,
name: Optional[str] = None,
machine_policy_id: Optional[str] = None,
communication_mode: Optional[str] = None,
kubernetes_agent_deployment_target_id: Optional[str] = None,
space_id: Optional[str] = None,
tenant_tags: Optional[Sequence[str]] = None,
tenanted_deployment_participation: Optional[str] = None,
tenants: Optional[Sequence[str]] = None,
is_disabled: Optional[bool] = None,
upgrade_locked: Optional[bool] = None,
default_namespace: Optional[str] = None)
func NewKubernetesAgentDeploymentTarget(ctx *Context, name string, args KubernetesAgentDeploymentTargetArgs, opts ...ResourceOption) (*KubernetesAgentDeploymentTarget, error)
public KubernetesAgentDeploymentTarget(string name, KubernetesAgentDeploymentTargetArgs args, CustomResourceOptions? opts = null)
public KubernetesAgentDeploymentTarget(String name, KubernetesAgentDeploymentTargetArgs args)
public KubernetesAgentDeploymentTarget(String name, KubernetesAgentDeploymentTargetArgs args, CustomResourceOptions options)
type: octopusdeploy:KubernetesAgentDeploymentTarget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args KubernetesAgentDeploymentTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args KubernetesAgentDeploymentTargetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KubernetesAgentDeploymentTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesAgentDeploymentTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesAgentDeploymentTargetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var kubernetesAgentDeploymentTargetResource = new Octopusdeploy.KubernetesAgentDeploymentTarget("kubernetesAgentDeploymentTargetResource", new()
{
Roles = new[]
{
"string",
},
Uri = "string",
Environments = new[]
{
"string",
},
Thumbprint = "string",
Name = "string",
MachinePolicyId = "string",
CommunicationMode = "string",
KubernetesAgentDeploymentTargetId = "string",
SpaceId = "string",
TenantTags = new[]
{
"string",
},
TenantedDeploymentParticipation = "string",
Tenants = new[]
{
"string",
},
IsDisabled = false,
UpgradeLocked = false,
DefaultNamespace = "string",
});
example, err := octopusdeploy.NewKubernetesAgentDeploymentTarget(ctx, "kubernetesAgentDeploymentTargetResource", &octopusdeploy.KubernetesAgentDeploymentTargetArgs{
Roles: pulumi.StringArray{
pulumi.String("string"),
},
Uri: pulumi.String("string"),
Environments: pulumi.StringArray{
pulumi.String("string"),
},
Thumbprint: pulumi.String("string"),
Name: pulumi.String("string"),
MachinePolicyId: pulumi.String("string"),
CommunicationMode: pulumi.String("string"),
KubernetesAgentDeploymentTargetId: pulumi.String("string"),
SpaceId: pulumi.String("string"),
TenantTags: pulumi.StringArray{
pulumi.String("string"),
},
TenantedDeploymentParticipation: pulumi.String("string"),
Tenants: pulumi.StringArray{
pulumi.String("string"),
},
IsDisabled: pulumi.Bool(false),
UpgradeLocked: pulumi.Bool(false),
DefaultNamespace: pulumi.String("string"),
})
var kubernetesAgentDeploymentTargetResource = new KubernetesAgentDeploymentTarget("kubernetesAgentDeploymentTargetResource", KubernetesAgentDeploymentTargetArgs.builder()
.roles("string")
.uri("string")
.environments("string")
.thumbprint("string")
.name("string")
.machinePolicyId("string")
.communicationMode("string")
.kubernetesAgentDeploymentTargetId("string")
.spaceId("string")
.tenantTags("string")
.tenantedDeploymentParticipation("string")
.tenants("string")
.isDisabled(false)
.upgradeLocked(false)
.defaultNamespace("string")
.build());
kubernetes_agent_deployment_target_resource = octopusdeploy.KubernetesAgentDeploymentTarget("kubernetesAgentDeploymentTargetResource",
roles=["string"],
uri="string",
environments=["string"],
thumbprint="string",
name="string",
machine_policy_id="string",
communication_mode="string",
kubernetes_agent_deployment_target_id="string",
space_id="string",
tenant_tags=["string"],
tenanted_deployment_participation="string",
tenants=["string"],
is_disabled=False,
upgrade_locked=False,
default_namespace="string")
const kubernetesAgentDeploymentTargetResource = new octopusdeploy.KubernetesAgentDeploymentTarget("kubernetesAgentDeploymentTargetResource", {
roles: ["string"],
uri: "string",
environments: ["string"],
thumbprint: "string",
name: "string",
machinePolicyId: "string",
communicationMode: "string",
kubernetesAgentDeploymentTargetId: "string",
spaceId: "string",
tenantTags: ["string"],
tenantedDeploymentParticipation: "string",
tenants: ["string"],
isDisabled: false,
upgradeLocked: false,
defaultNamespace: "string",
});
type: octopusdeploy:KubernetesAgentDeploymentTarget
properties:
communicationMode: string
defaultNamespace: string
environments:
- string
isDisabled: false
kubernetesAgentDeploymentTargetId: string
machinePolicyId: string
name: string
roles:
- string
spaceId: string
tenantTags:
- string
tenantedDeploymentParticipation: string
tenants:
- string
thumbprint: string
upgradeLocked: false
uri: string
KubernetesAgentDeploymentTarget Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The KubernetesAgentDeploymentTarget resource accepts the following input properties:
- Environments List<string>
- A list of environment IDs this Kubernetes agent can deploy to.
- Roles List<string>
- A list of target roles that are associated to this Kubernetes agent.
- Thumbprint string
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- Uri string
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- Communication
Mode string - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- Default
Namespace string - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- Is
Disabled bool - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- Kubernetes
Agent stringDeployment Target Id - The unique ID for this resource.
- Machine
Policy stringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- Name string
- The name of this resource.
- Space
Id string - The space ID associated with this resource.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants List<string>
- A list of tenant IDs associated with this resource.
- Upgrade
Locked bool - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- Environments []string
- A list of environment IDs this Kubernetes agent can deploy to.
- Roles []string
- A list of target roles that are associated to this Kubernetes agent.
- Thumbprint string
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- Uri string
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- Communication
Mode string - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- Default
Namespace string - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- Is
Disabled bool - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- Kubernetes
Agent stringDeployment Target Id - The unique ID for this resource.
- Machine
Policy stringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- Name string
- The name of this resource.
- Space
Id string - The space ID associated with this resource.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants []string
- A list of tenant IDs associated with this resource.
- Upgrade
Locked bool - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- environments List<String>
- A list of environment IDs this Kubernetes agent can deploy to.
- roles List<String>
- A list of target roles that are associated to this Kubernetes agent.
- thumbprint String
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- uri String
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- communication
Mode String - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default
Namespace String - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- is
Disabled Boolean - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes
Agent StringDeployment Target Id - The unique ID for this resource.
- machine
Policy StringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name String
- The name of this resource.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- upgrade
Locked Boolean - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- environments string[]
- A list of environment IDs this Kubernetes agent can deploy to.
- roles string[]
- A list of target roles that are associated to this Kubernetes agent.
- thumbprint string
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- uri string
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- communication
Mode string - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default
Namespace string - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- is
Disabled boolean - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes
Agent stringDeployment Target Id - The unique ID for this resource.
- machine
Policy stringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name string
- The name of this resource.
- space
Id string - The space ID associated with this resource.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants string[]
- A list of tenant IDs associated with this resource.
- upgrade
Locked boolean - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- environments Sequence[str]
- A list of environment IDs this Kubernetes agent can deploy to.
- roles Sequence[str]
- A list of target roles that are associated to this Kubernetes agent.
- thumbprint str
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- uri str
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- communication_
mode str - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default_
namespace str - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- is_
disabled bool - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes_
agent_ strdeployment_ target_ id - The unique ID for this resource.
- machine_
policy_ strid - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name str
- The name of this resource.
- space_
id str - The space ID associated with this resource.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants Sequence[str]
- A list of tenant IDs associated with this resource.
- upgrade_
locked bool - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- environments List<String>
- A list of environment IDs this Kubernetes agent can deploy to.
- roles List<String>
- A list of target roles that are associated to this Kubernetes agent.
- thumbprint String
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- uri String
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- communication
Mode String - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default
Namespace String - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- is
Disabled Boolean - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes
Agent StringDeployment Target Id - The unique ID for this resource.
- machine
Policy StringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name String
- The name of this resource.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- upgrade
Locked Boolean - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesAgentDeploymentTarget resource produces the following output properties:
- Agent
Helm stringRelease Name - Name of the Helm release that the agent belongs to.
- Agent
Kubernetes stringNamespace - Name of the Kubernetes namespace where the agent is installed.
- Agent
Tentacle stringVersion - Current Tentacle version of the agent
- Agent
Upgrade stringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- Agent
Version string - Current Helm chart version of the agent.
- Id string
- The provider-assigned unique ID for this managed resource.
- Agent
Helm stringRelease Name - Name of the Helm release that the agent belongs to.
- Agent
Kubernetes stringNamespace - Name of the Kubernetes namespace where the agent is installed.
- Agent
Tentacle stringVersion - Current Tentacle version of the agent
- Agent
Upgrade stringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- Agent
Version string - Current Helm chart version of the agent.
- Id string
- The provider-assigned unique ID for this managed resource.
- agent
Helm StringRelease Name - Name of the Helm release that the agent belongs to.
- agent
Kubernetes StringNamespace - Name of the Kubernetes namespace where the agent is installed.
- agent
Tentacle StringVersion - Current Tentacle version of the agent
- agent
Upgrade StringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent
Version String - Current Helm chart version of the agent.
- id String
- The provider-assigned unique ID for this managed resource.
- agent
Helm stringRelease Name - Name of the Helm release that the agent belongs to.
- agent
Kubernetes stringNamespace - Name of the Kubernetes namespace where the agent is installed.
- agent
Tentacle stringVersion - Current Tentacle version of the agent
- agent
Upgrade stringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent
Version string - Current Helm chart version of the agent.
- id string
- The provider-assigned unique ID for this managed resource.
- agent_
helm_ strrelease_ name - Name of the Helm release that the agent belongs to.
- agent_
kubernetes_ strnamespace - Name of the Kubernetes namespace where the agent is installed.
- agent_
tentacle_ strversion - Current Tentacle version of the agent
- agent_
upgrade_ strstatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent_
version str - Current Helm chart version of the agent.
- id str
- The provider-assigned unique ID for this managed resource.
- agent
Helm StringRelease Name - Name of the Helm release that the agent belongs to.
- agent
Kubernetes StringNamespace - Name of the Kubernetes namespace where the agent is installed.
- agent
Tentacle StringVersion - Current Tentacle version of the agent
- agent
Upgrade StringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent
Version String - Current Helm chart version of the agent.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing KubernetesAgentDeploymentTarget Resource
Get an existing KubernetesAgentDeploymentTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: KubernetesAgentDeploymentTargetState, opts?: CustomResourceOptions): KubernetesAgentDeploymentTarget
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_helm_release_name: Optional[str] = None,
agent_kubernetes_namespace: Optional[str] = None,
agent_tentacle_version: Optional[str] = None,
agent_upgrade_status: Optional[str] = None,
agent_version: Optional[str] = None,
communication_mode: Optional[str] = None,
default_namespace: Optional[str] = None,
environments: Optional[Sequence[str]] = None,
is_disabled: Optional[bool] = None,
kubernetes_agent_deployment_target_id: Optional[str] = None,
machine_policy_id: Optional[str] = None,
name: Optional[str] = None,
roles: Optional[Sequence[str]] = None,
space_id: Optional[str] = None,
tenant_tags: Optional[Sequence[str]] = None,
tenanted_deployment_participation: Optional[str] = None,
tenants: Optional[Sequence[str]] = None,
thumbprint: Optional[str] = None,
upgrade_locked: Optional[bool] = None,
uri: Optional[str] = None) -> KubernetesAgentDeploymentTarget
func GetKubernetesAgentDeploymentTarget(ctx *Context, name string, id IDInput, state *KubernetesAgentDeploymentTargetState, opts ...ResourceOption) (*KubernetesAgentDeploymentTarget, error)
public static KubernetesAgentDeploymentTarget Get(string name, Input<string> id, KubernetesAgentDeploymentTargetState? state, CustomResourceOptions? opts = null)
public static KubernetesAgentDeploymentTarget get(String name, Output<String> id, KubernetesAgentDeploymentTargetState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:KubernetesAgentDeploymentTarget get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Agent
Helm stringRelease Name - Name of the Helm release that the agent belongs to.
- Agent
Kubernetes stringNamespace - Name of the Kubernetes namespace where the agent is installed.
- Agent
Tentacle stringVersion - Current Tentacle version of the agent
- Agent
Upgrade stringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- Agent
Version string - Current Helm chart version of the agent.
- Communication
Mode string - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- Default
Namespace string - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- Environments List<string>
- A list of environment IDs this Kubernetes agent can deploy to.
- Is
Disabled bool - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- Kubernetes
Agent stringDeployment Target Id - The unique ID for this resource.
- Machine
Policy stringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- Name string
- The name of this resource.
- Roles List<string>
- A list of target roles that are associated to this Kubernetes agent.
- Space
Id string - The space ID associated with this resource.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants List<string>
- A list of tenant IDs associated with this resource.
- Thumbprint string
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- Upgrade
Locked bool - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- Uri string
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- Agent
Helm stringRelease Name - Name of the Helm release that the agent belongs to.
- Agent
Kubernetes stringNamespace - Name of the Kubernetes namespace where the agent is installed.
- Agent
Tentacle stringVersion - Current Tentacle version of the agent
- Agent
Upgrade stringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- Agent
Version string - Current Helm chart version of the agent.
- Communication
Mode string - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- Default
Namespace string - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- Environments []string
- A list of environment IDs this Kubernetes agent can deploy to.
- Is
Disabled bool - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- Kubernetes
Agent stringDeployment Target Id - The unique ID for this resource.
- Machine
Policy stringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- Name string
- The name of this resource.
- Roles []string
- A list of target roles that are associated to this Kubernetes agent.
- Space
Id string - The space ID associated with this resource.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants []string
- A list of tenant IDs associated with this resource.
- Thumbprint string
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- Upgrade
Locked bool - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- Uri string
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- agent
Helm StringRelease Name - Name of the Helm release that the agent belongs to.
- agent
Kubernetes StringNamespace - Name of the Kubernetes namespace where the agent is installed.
- agent
Tentacle StringVersion - Current Tentacle version of the agent
- agent
Upgrade StringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent
Version String - Current Helm chart version of the agent.
- communication
Mode String - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default
Namespace String - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- environments List<String>
- A list of environment IDs this Kubernetes agent can deploy to.
- is
Disabled Boolean - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes
Agent StringDeployment Target Id - The unique ID for this resource.
- machine
Policy StringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name String
- The name of this resource.
- roles List<String>
- A list of target roles that are associated to this Kubernetes agent.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- thumbprint String
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- upgrade
Locked Boolean - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- uri String
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- agent
Helm stringRelease Name - Name of the Helm release that the agent belongs to.
- agent
Kubernetes stringNamespace - Name of the Kubernetes namespace where the agent is installed.
- agent
Tentacle stringVersion - Current Tentacle version of the agent
- agent
Upgrade stringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent
Version string - Current Helm chart version of the agent.
- communication
Mode string - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default
Namespace string - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- environments string[]
- A list of environment IDs this Kubernetes agent can deploy to.
- is
Disabled boolean - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes
Agent stringDeployment Target Id - The unique ID for this resource.
- machine
Policy stringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name string
- The name of this resource.
- roles string[]
- A list of target roles that are associated to this Kubernetes agent.
- space
Id string - The space ID associated with this resource.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants string[]
- A list of tenant IDs associated with this resource.
- thumbprint string
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- upgrade
Locked boolean - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- uri string
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- agent_
helm_ strrelease_ name - Name of the Helm release that the agent belongs to.
- agent_
kubernetes_ strnamespace - Name of the Kubernetes namespace where the agent is installed.
- agent_
tentacle_ strversion - Current Tentacle version of the agent
- agent_
upgrade_ strstatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent_
version str - Current Helm chart version of the agent.
- communication_
mode str - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default_
namespace str - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- environments Sequence[str]
- A list of environment IDs this Kubernetes agent can deploy to.
- is_
disabled bool - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes_
agent_ strdeployment_ target_ id - The unique ID for this resource.
- machine_
policy_ strid - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name str
- The name of this resource.
- roles Sequence[str]
- A list of target roles that are associated to this Kubernetes agent.
- space_
id str - The space ID associated with this resource.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants Sequence[str]
- A list of tenant IDs associated with this resource.
- thumbprint str
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- upgrade_
locked bool - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- uri str
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
- agent
Helm StringRelease Name - Name of the Helm release that the agent belongs to.
- agent
Kubernetes StringNamespace - Name of the Kubernetes namespace where the agent is installed.
- agent
Tentacle StringVersion - Current Tentacle version of the agent
- agent
Upgrade StringStatus - Current upgrade availability status of the agent. One of 'NoUpgrades', 'UpgradeAvailable', 'UpgradeSuggested', 'UpgradeRequired'
- agent
Version String - Current Helm chart version of the agent.
- communication
Mode String - The communication mode used by the Kubernetes agent to communicate with Octopus Server. Currently, the only supported value is 'Polling'.
- default
Namespace String - Optional default namespace that will be used when using Kubernetes deployment steps, can be overrides within step configurations.
- environments List<String>
- A list of environment IDs this Kubernetes agent can deploy to.
- is
Disabled Boolean - Whether the Kubernetes agent is disabled. If the agent is disabled, it will not be included in any deployments.
- kubernetes
Agent StringDeployment Target Id - The unique ID for this resource.
- machine
Policy StringId - Optional ID of the machine policy that the Kubernetes agent will use. If not provided the default machine policy will be used.
- name String
- The name of this resource.
- roles List<String>
- A list of target roles that are associated to this Kubernetes agent.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- thumbprint String
- The thumbprint of the Kubernetes agent's certificate used by server to verify the identity of the agent. This is the same thumbprint that was used when installing the agent.
- upgrade
Locked Boolean - If enabled the Kubernetes agent will not automatically upgrade and will stay on the currently installed version, even if the associated machine policy is configured to automatically upgrade.
- uri String
- The URI of the Kubernetes agent's used by the server to queue messages. This is the same subscription uri that was used when installing the agent.
Import
$ pulumi import octopusdeploy:index/kubernetesAgentDeploymentTarget:KubernetesAgentDeploymentTarget [options] octopusdeploy_kubernetes_agent_deployment_target.<name> <machine-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.