quick-answer-45507
02/21/2023, 4:37 PMproviders:
- name: local-kubernetes
context: minikube
environments: [dev]
defaultHostname: "whenidev.net"
setupIngressController: false
deploymentRegistry:
hostname: nexus-docker-out.build-tools.DOMAIN-production.com
namespace: default
imagePullSecrets:
- name: gitlab
copySecrets:
- name: gitlab
but when i try to apply a kube manifest that refrences an image from that repo with imagePullSecrets:
- name: gitlab
defined i still get failed to pull image no basic auth credentials...
any ideas?bright-policeman-43626
02/22/2023, 7:37 AMquick-answer-45507
02/22/2023, 1:46 PMapiVersion: apps/v1
kind: Deployment
metadata:
name: dynamodb
spec:
selector:
matchLabels:
app: dynamodb
template:
metadata:
labels:
app: dynamodb
spec:
volumes:
- name: dbstorage
persistentVolumeClaim:
claimName: dynamodb-pv-claim
containers:
- name: dynamodb
image: nexus-docker-out.build-tools.wheniwork-production.com/amazon/dynamodb-local:1.12.0
args: ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-dbPath", "./data"]
ports:
- containerPort: 8000
volumeMounts:
- name: dbstorage
mountPath: /home/dynamodblocal/data
- name: dynamodb-ui
image: nexus-docker-out.build-tools.wheniwork-production.com/aaronshaf/dynamodb-admin:latest
ports:
- containerPort: 8001
env:
- name: DYNAMO_ENDPOINT
value: "http://localhost:8000"
imagePullSecrets:
- name: gitlab
bright-policeman-43626
02/22/2023, 2:58 PMquick-answer-45507
02/22/2023, 5:30 PMkind: Module
type: kubernetes
name: dynamodb
files:
- ./container.yaml
kubectl get secrets -n garden-default
NAME TYPE DATA AGE
gitlab kubernetes.io/dockerconfigjson 1 25m
quaint-dress-831
02/24/2023, 10:43 AMdocker login registry.example.com
then attempt to pull and pushquick-answer-45507
02/24/2023, 11:13 PMfreezing-pharmacist-34446
02/27/2023, 11:21 AMimagePullSecret
to all the namespaces used with garden. It injects the imagePullSecret
for container modules, however you are using a Kubernetes module which means you need to specify the secret in your Kubernetes manifest used in that module. You can rely on it being present in the same namespace but you'll still need to reference it. Does that help?bright-policeman-43626
03/03/2023, 5:00 PMbig-spring-14945
03/06/2023, 11:58 AMquick-answer-45507
03/06/2023, 12:52 PMfreezing-pharmacist-34446
03/06/2023, 1:08 PMquick-answer-45507
03/06/2023, 1:17 PM