Deploy Applications via Component Chart
DevSpace provides a built-in general purpose Helm chart that allows you to deploy applications without creating your own Helm chart. The idea of this chart is to be quite generic, so that it is suitable to deploy most applications with it by just customizing the values passed to the chart.
devspace.yaml
version: v2beta1
deployments:
api:
helm:
chart:
name: component-chart
repo: https://charts.devspace.sh
values:
containers:
- image: ghcr.io/loft-sh/devspace-example-api
service:
ports:
- port: 8080
Values Validation
Because the component chart is embedded into DevSpace itself, DevSpace will parse the values
for a component-chart deployment and is able to run a config validation against the component-chart's values specification.
Values Reference
The component chart supports the following fields for its values
:
initContainers
required object[]
initContainers
required object[] name
required string
name
required string image
required string
image
required string command
required string[]
command
required string[] args
required string[]
args
required string[] stdin
required boolean false
stdin
required boolean false tty
required boolean false
tty
required boolean false env
required object[]
env
required object[] envFrom
required object[]
envFrom
required object[] volumeMounts
required object[]
volumeMounts
required object[] resources
required object
resources
required object livenessProbe
required object
livenessProbe
required object readinessProbe
required object
readinessProbe
required object startupProbe
required object
startupProbe
required object securityContext
required object
securityContext
required object lifecycle
required object
lifecycle
required object volumeDevices
required object[]
volumeDevices
required object[] imagePullPolicy
required string
imagePullPolicy
required string workingDir
required string
workingDir
required string stdinOnce
required boolean false
stdinOnce
required boolean false terminationMessagePath
required string
terminationMessagePath
required string terminationMessagePolicy
required string
terminationMessagePolicy
required string containers
required object[]
containers
required object[] name
required string
name
required string image
required string
image
required string command
required string[]
command
required string[] args
required string[]
args
required string[] stdin
required boolean false
stdin
required boolean false tty
required boolean false
tty
required boolean false env
required object[]
env
required object[] envFrom
required object[]
envFrom
required object[] volumeMounts
required object[]
volumeMounts
required object[] resources
required object
resources
required object livenessProbe
required object
livenessProbe
required object readinessProbe
required object
readinessProbe
required object startupProbe
required object
startupProbe
required object securityContext
required object
securityContext
required object lifecycle
required object
lifecycle
required object volumeDevices
required object[]
volumeDevices
required object[] imagePullPolicy
required string
imagePullPolicy
required string workingDir
required string
workingDir
required string stdinOnce
required boolean false
stdinOnce
required boolean false terminationMessagePath
required string
terminationMessagePath
required string terminationMessagePolicy
required string
terminationMessagePolicy
required string labels
required <label_name>:string
labels
required <label_name>:string annotations
required <annotation_name>:string
annotations
required <annotation_name>:string volumes
required object[]
volumes
required object[] name
required string
name
required string labels
required <label_name>:string
labels
required <label_name>:string annotations
required <annotation_name>:string
annotations
required <annotation_name>:string size
required string
size
required string configMap
required object
configMap
required object secret
required object
secret
required object emptyDir
required object
emptyDir
required object storageClassName
required string
storageClassName
required string volumeMode
required string
volumeMode
required string volumeName
required string
volumeName
required string dataSource
required object
dataSource
required object accessModes
required string[]
accessModes
required string[] service
required
service
required name
required string
name
required string labels
required <label_name>:string
labels
required <label_name>:string annotations
required <annotation_name>:string
annotations
required <annotation_name>:string type
required string
type
required string ports
required object[]
ports
required object[] externalIPs
required string[]
externalIPs
required string[] clusterIP
required string
clusterIP
required string externalName
required string
externalName
required string externalTrafficPolicy
required string
externalTrafficPolicy
required string healthCheckNodePort
required integer
healthCheckNodePort
required integer ipFamily
required string
ipFamily
required string loadBalancerIP
required string
loadBalancerIP
required string loadBalancerSourceRanges
required string[]
loadBalancerSourceRanges
required string[] publishNotReadyAddresses
required boolean false
publishNotReadyAddresses
required boolean false sessionAffinity
required object
sessionAffinity
required object sessionAffinityConfig
required object
sessionAffinityConfig
required object topologyKeys
required string[]
topologyKeys
required string[] serviceName
required string
serviceName
required string ingress
required
ingress
required replicas
required integer
replicas
required integer autoScaling
required
autoScaling
required rollingUpdate
required
rollingUpdate
required pullSecrets
required string[]
pullSecrets
required string[] tolerations
required object[]
tolerations
required object[] affinity
required object
affinity
required object nodeSelector
required object
nodeSelector
required object nodeName
required string
nodeName
required string podManagementPolicy
required string
podManagementPolicy
required string dnsConfig
required object
dnsConfig
required object hostAliases
required object[]
hostAliases
required object[] overhead
required object
overhead
required object readinessGates
required object[]
readinessGates
required object[] securityContext
required object
securityContext
required object topologySpreadConstraints
required object[]
topologySpreadConstraints
required object[] activeDeadlineSeconds
required integer
activeDeadlineSeconds
required integer automountServiceAccountToken
required boolean false
automountServiceAccountToken
required boolean false dnsPolicy
required string
dnsPolicy
required string enableServiceLinks
required boolean false
enableServiceLinks
required boolean false hostIPC
required boolean false
hostIPC
required boolean false hostNetwork
required boolean false
hostNetwork
required boolean false hostPID
required boolean false
hostPID
required boolean false hostname
required string
hostname
required string preemptionPolicy
required string
preemptionPolicy
required string priority
required integer
priority
required integer priorityClassName
required string
priorityClassName
required string restartPolicy
required string
restartPolicy
required string runtimeClassName
required string
runtimeClassName
required string schedulerName
required string
schedulerName
required string serviceAccount
required string
serviceAccount
required string serviceAccountName
required string
serviceAccountName
required string setHostnameAsFQDN
required boolean false
setHostnameAsFQDN
required boolean false shareProcessNamespace
required boolean false
shareProcessNamespace
required boolean false subdomain
required string
subdomain
required string terminationGracePeriodSeconds
required integer
terminationGracePeriodSeconds
required integer ephemeralContainers
required object[]
ephemeralContainers
required object[]