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: gitlabquick-answer-45507
02/22/2023, 1:46 PMquick-answer-45507
02/22/2023, 2:27 PMbright-policeman-43626
02/22/2023, 2:58 PMbright-policeman-43626
02/22/2023, 3:20 PMquick-answer-45507
02/22/2023, 5:30 PMkind: Module
type: kubernetes
name: dynamodb
files:
- ./container.yamlquick-answer-45507
02/22/2023, 5:30 PMkubectl get secrets -n garden-default
NAME TYPE DATA AGE
gitlab kubernetes.io/dockerconfigjson 1 25mquaint-dress-831
02/24/2023, 10:43 AMdocker login registry.example.com then attempt to pull and pushquaint-dress-831
02/24/2023, 10:44 AMquaint-dress-831
02/24/2023, 10:44 AMquick-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