k8s-image-swapper

by estahn

Helm chartv1.11.0App 1.5.10Verified publisher

Mirror images into your own registry and swap image references automatically.

About this chart

k8s-image-swapper

Mirror images into your own registry and swap image references automatically.

Homepage: https://github.com/estahn/charts/tree/main/charts/k8s-image-swapper

Maintainers

NameEmailUrl
estahn[email protected]

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
awsSecretKeysobject{"accessKeyID":"aws_access_key_id","secretAccessKey":"aws_secret_access_key"}Specify which keys to pull from the .awsSecretName secret for the associated environment variables.
awsSecretKeys.accessKeyIDstring"aws_access_key_id"If using Hashicorp Vault Operator w/ AWS engine, use access_key
awsSecretKeys.secretAccessKeystring"aws_secret_access_key"If using Hashicorp Vault Operator w/ AWS engine, use secret_key
awsSecretNamestring""If set, the secret will be used as environment variables, see awsSecretKeys.
cacheVolumeobject{"emptyDir":{}}The type of volume to be used for caching images
certmanager.enabledboolfalseShould cert-manager be used to issue the certificate use by the k8s-image-swapper endpoints
certmanager.issuerKindstring"Issuer"Whether cert-manager should use an Issuer or ClusterIssuer to issue the cert
certmanager.issuerNamestring""If set, the name of the cert-manager issuer to use to issue the cert, otherwise a self-signed issuer will be created
clusterSuffixstring"cluster.local"The DNS suffix of cluster addresses
commonLabelsobject{}Labels that will be added on all the resources (not in selectors)
config.dryRunbooltrue
config.logFormatstring"console"
config.logLevelstring"debug"
config.source.filters[0].jmespathstring"obj.metadata.namespace == 'kube-system'"
config.target.aws.accountIdstring"12345678"
config.target.aws.regionstring"ap-southeast-2"
containerPortint8443
deployment.annotationsobject{}
deployment.priorityClassNamestring""
dev.enabledboolfalse
dev.webhookURLstring"https://xxx.ngrok.io"
extraEnvlist[]Additional environment variables to be defined on the container Follows the same syntax as containers.env in a Pod v1 API
extraManifestslist[]Additional manifests to be deployed Can be either a full object OR a string containing valid YAML
extraManifestsTemplatedlist[]Additional manifests to be deployed. These will be passed through the templating engine Useful if you need to use values from this chart in your manifests
fullnameOverridestring""
hostNetworkboolfalse
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/estahn/k8s-image-swapper"
image.tagstring""
imagePullSecretslist[]
kubeVersionOverridestring""
nameOverridestring""
nodeSelectorobject{}
patch.enabledbooltrue
patch.image.pullPolicystring"IfNotPresent"
patch.image.repositorystring"k8s.gcr.io/ingress-nginx/kube-webhook-certgen"
patch.image.tagstring"v1.3.0"
patch.nodeSelectorobject{}
patch.podAnnotationsobject{}
patch.priorityClassNamestring""
patch.resourcesobject{}
pdb.enabledboolfalse
pdb.minAvailablestring"1"
podAnnotationsobject{}
podSecurityContextobject{}
podSecurityPolicy.enabledboolfalse
rbac.createbooltrue
replicaCountint1
resourcesobject{}
secretReader.enabledboolfalse
secretReader.secretNameslist[]
securityContextobject{}
service.portint443
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
test.affinityobject{}Set affinity for the test pod
test.enabledbooltrueShould the test be included with the release
test.imagestring"busybox"The image to use for running the test
test.nodeSelectorobject{}Set a node selector for the test pod
test.tolerationslist[]Set tolerations for the test pod
tolerationslist[]
webhook.failurePolicystring"Ignore"
webhook.namespaceSelectorobject{}
webhook.objectSelectorobject{}
webhook.reinvocationPolicystring"Never"
webhook.timeoutSecondsint10

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy k8s-image-swapper with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has k8s-image-swapper on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartk8s-image-swapper is pinned at v1.11.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply