Helm chartv1.0.3App 1.0.0Verified publisher

A Helm chart for Kubernetes with AWS ECR

About this chart

ecr-creds

A Helm chart for Kubernetes with AWS ECR

Usage

Run the following command to install this chart

  • Using access key
cat > values.yaml <<EOF
targetPullSecretName: ecr-registry
targetNamespaces:
  - kube-addons
aws:
  account: "xxx"
  region: "us-east-1"
  credentials:
    accessKey: "xxx"
    secretKey: "xxx"
EOF

helm install --name ecr-creds zbytes/ecr-creds --values values.yaml
  • Using IRSA
cat > sa-values.yaml <<EOF
serviceAccount:
  create: true
  name: ecr-creds-sa
  annotations:
    eks.amazonaws.com/role-arn: <irsa_arn>
targetPullSecretName: ecr-registry
targetNamespaces:
  - kube-addons
aws:
  account: "xxx"
  region: "us-east-1"
EOF

helm install --name ecr-creds zbytes/ecr-creds --values sa-values.yaml

In you kubernetes deployment use imagePullSecrets: ecr-registry

Example:

apiVersion: apps/v1
kind: Deployment
spec:
  template:
    spec:
      imagePullSecrets:
        - name: ecr-registry
    containers:
      - name: pod-name
        image: pod-image:latest

Deploy ecr-creds with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ecr-creds 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 chartecr-creds is pinned at v1.0.3 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