Skip to main content

EdgeStack

Resource EdgeStack in pulumi-portainer.
8 min read

Resource EdgeStack in pulumi-portainer.

Pulumi type: portainer:index/edgeStack:EdgeStack.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
alwaysClonebooleannoWhether the agent must always clone the git repository for relative path. Only valid when relativePath is set.
deploymentTypenumberyes0 = Docker Compose, 1 = Kubernetes
dryrunbooleannoIf true, perform a dry-run of the Edge stack deployment without applying changes.
edgeGroupsnumber[]yesList of Portainer Edge group IDs to which this Edge stack is deployed.
edgeStackIdstringno
environment{ [key: string]: string }noEnvironment variables for the Edge Stack
filePathInRepositorystringnoPath to the Compose or manifest file within the Git repository. Changing this value forces resource recreation.
forceUpdatebooleannoWhether to prune unused services/networks during stack update (default: true)
gitRepositoryAuthenticationbooleannoWhether authentication is required to clone the Git repository.
helmConfigEdgeStackHelmConfig (input)noDeploy the stack from a Helm chart repository instead of a compose file or a git repository. Business Edition only.
namestringnoName of the Portainer Edge stack.
prePullImagebooleannoWhether Portainer should pre-pull images on Edge agents before deploying the stack.
pullImagebooleannoWhether to force pull latest images during stack update (default: true)
registriesnumber[]noList of Portainer registry IDs used to pull images for this Edge stack.
relativePathstringnoEnable relative path volumes – also used as value for 'filesystemPath'.
repositoryGitCredentialIdnumbernoID of the Git credentials to use for authentication.
repositoryPasswordstringnoPassword or personal access token used to authenticate against the Git repository. Stored in state as sensitive value. Changing this value forces resource recreation.
repositoryReferenceNamestringnoGit reference (branch or tag) to check out from the repository.
repositoryUrlstringnoGit repository URL containing the Edge stack definition. Changing this value forces resource recreation.
repositoryUsernamestringnoUsername used to authenticate against the Git repository. Changing this value forces resource recreation.
retryDeploybooleannoWhether the Edge agent should retry deployment on failure.
stackFileContentstringnoInline content of the Docker Compose or Kubernetes manifest used to deploy the Edge stack.
stackFilePathstringnoLocal filesystem path to a Compose or manifest file used as the Edge stack definition. Changing this value forces resource recreation.
stackWebhookbooleannoEnable autoUpdate webhook (GitOps).
timeoutsEdgeStackTimeouts (input)no
updateIntervalstringnoGitOps update interval (e.g. "5m") at which Portainer polls the Git repository for Edge stack changes.
useManifestNamespacesbooleannoFor Kubernetes deployments, whether to use namespaces declared inside the manifest instead of the default Portainer namespace.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
alwaysClonebooleannoWhether the agent must always clone the git repository for relative path. Only valid when relativePath is set.
deploymentTypenumberno0 = Docker Compose, 1 = Kubernetes
dryrunbooleannoIf true, perform a dry-run of the Edge stack deployment without applying changes.
edgeGroupsnumber[]noList of Portainer Edge group IDs to which this Edge stack is deployed.
edgeStackIdstringno
environment{ [key: string]: string }noEnvironment variables for the Edge Stack
filePathInRepositorystringnoPath to the Compose or manifest file within the Git repository. Changing this value forces resource recreation.
forceUpdatebooleannoWhether to prune unused services/networks during stack update (default: true)
gitRepositoryAuthenticationbooleannoWhether authentication is required to clone the Git repository.
helmConfigEdgeStackHelmConfig (output)noDeploy the stack from a Helm chart repository instead of a compose file or a git repository. Business Edition only.
namestringnoName of the Portainer Edge stack.
prePullImagebooleannoWhether Portainer should pre-pull images on Edge agents before deploying the stack.
pullImagebooleannoWhether to force pull latest images during stack update (default: true)
registriesnumber[]noList of Portainer registry IDs used to pull images for this Edge stack.
relativePathstringnoEnable relative path volumes – also used as value for 'filesystemPath'.
repositoryGitCredentialIdnumbernoID of the Git credentials to use for authentication.
repositoryPasswordstringnoPassword or personal access token used to authenticate against the Git repository. Stored in state as sensitive value. Changing this value forces resource recreation.
repositoryReferenceNamestringnoGit reference (branch or tag) to check out from the repository.
repositoryUrlstringnoGit repository URL containing the Edge stack definition. Changing this value forces resource recreation.
repositoryUsernamestringnoUsername used to authenticate against the Git repository. Changing this value forces resource recreation.
retryDeploybooleannoWhether the Edge agent should retry deployment on failure.
stackFileContentstringnoInline content of the Docker Compose or Kubernetes manifest used to deploy the Edge stack.
stackFilePathstringnoLocal filesystem path to a Compose or manifest file used as the Edge stack definition. Changing this value forces resource recreation.
stackWebhookbooleannoEnable autoUpdate webhook (GitOps).
timeoutsEdgeStackTimeouts (output)no
updateIntervalstringnoGitOps update interval (e.g. "5m") at which Portainer polls the Git repository for Edge stack changes.
useManifestNamespacesbooleannoFor Kubernetes deployments, whether to use namespaces declared inside the manifest instead of the default Portainer namespace.
webhookIdstringyesUUID of the GitOps webhook (read-only).
webhookUrlstringyesFull URL of the webhook trigger

EdgeStackHelmConfig (input)#

Input object EdgeStackHelmConfig. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
atomicbooleannoWhether a failed deployment is rolled back automatically, the equivalent of helm --atomic.
chartNamestringyesName of the Helm chart within the repository.
chartUrlstringyesURL of the Helm chart repository.
chartVersionstringnoVersion of the chart to deploy. Leave unset to deploy the latest published version - note that Portainer then picks the version, so a re-apply can move the stack.
namespacestringnoKubernetes namespace to deploy the chart into.
timeoutstringnoDeadline for Helm operations, the equivalent of helm --timeout (for example 5m0s).
valuesInlinestringnoHelm values as an inline YAML string, the equivalent of a values file passed to helm install.

EdgeStackTimeouts (input)#

Input object EdgeStackTimeouts. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
createstringno
deletestringno
updatestringno

EdgeStackHelmConfig (output)#

Output object EdgeStackHelmConfig. Fields below belong to this object.

PropertyTypeAlways presentDescription
atomicbooleannoWhether a failed deployment is rolled back automatically, the equivalent of helm --atomic.
chartNamestringyesName of the Helm chart within the repository.
chartUrlstringyesURL of the Helm chart repository.
chartVersionstringnoVersion of the chart to deploy. Leave unset to deploy the latest published version - note that Portainer then picks the version, so a re-apply can move the stack.
namespacestringnoKubernetes namespace to deploy the chart into.
timeoutstringnoDeadline for Helm operations, the equivalent of helm --timeout (for example 5m0s).
valuesInlinestringnoHelm values as an inline YAML string, the equivalent of a values file passed to helm install.

EdgeStackTimeouts (output)#

Output object EdgeStackTimeouts. Fields below belong to this object.

PropertyTypeAlways presentDescription
createstringno
deletestringno
updatestringno