Skip to content

Commit dd1c545

Browse files
committed
k8s, terraform: Remove Docker config for private images
1 parent df8d58a commit dd1c545

File tree

4 files changed

+0
-45
lines changed

4 files changed

+0
-45
lines changed

k8s/base/indexer-agent/deployment.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ spec:
1616
prometheus.io/path: "/metrics"
1717
prometheus.io/port: "7300"
1818
spec:
19-
# Temporary: Allow to pull private Docker images
20-
imagePullSecrets:
21-
- name: docker-registry
2219
containers:
2320
- name: indexer-agent
2421
image: indexer-agent-image

k8s/base/indexer-service/deployment.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ spec:
1616
prometheus.io/path: "/metrics"
1717
prometheus.io/port: "7300"
1818
spec:
19-
# Temporary: Allow to pull private Docker images
20-
imagePullSecrets:
21-
- name: docker-registry
2219
containers:
2320
- name: indexer-service
2421
image: indexer-service-image

terraform/docker-config.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

terraform/main.tf

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -262,35 +262,6 @@ resource "kubernetes_secret" "free-query-auth-token" {
262262
}
263263
}
264264

265-
#
266-
# Temporary: Secret for pulling private Docker Hub images
267-
#
268-
269-
resource "kubernetes_secret" "docker-registry" {
270-
metadata {
271-
name = "docker-registry"
272-
}
273-
data = {
274-
".dockerconfigjson" = "${data.template_file.docker_config_script.rendered}"
275-
}
276-
277-
type = "kubernetes.io/dockerconfigjson"
278-
}
279-
280-
#
281-
# Temporary: Docker config for pulling private Docker Hub images
282-
#
283-
data "template_file" "docker_config_script" {
284-
template = "${file("${path.module}/docker-config.json")}"
285-
vars = {
286-
docker-server = "registry.hub.docker.com"
287-
docker-username = var.dockerhub_username
288-
docker-password = var.dockerhub_password
289-
docker-email = var.dockerhub_email
290-
auth = base64encode("${var.dockerhub_username}:${var.dockerhub_password}")
291-
}
292-
}
293-
294265
#
295266
# Persistent disks
296267
#

0 commit comments

Comments
 (0)