Skip to content

Commit

Permalink
[k8s] Correct agent image repository (#6724)
Browse files Browse the repository at this point in the history
* fix: correct agent image repository

* fix: update agent image repository in more places

* fix default docker image repository

---------

Co-authored-by: Paolo Chila <paolo.chila@elastic.co>
  • Loading branch information
pkoutsovasilis and pchila authored Feb 13, 2025
1 parent 387970d commit ed7c19f
Show file tree
Hide file tree
Showing 34 changed files with 51 additions and 53 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/edot-collector/kube-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ crds:
create: true # Install the OpenTelemetry Operator CRDs.
defaultCRConfig:
image:
repository: "docker.elastic.co/beats/elastic-agent"
repository: "docker.elastic.co/elastic-agent/elastic-agent"
tag: "9.1.0"
targetAllocator:
enabled: false # Enable/disable the Operator's Target allocator.
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/elastic-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The chart built-in [kubernetes integration](https://docs.elastic.co/integrations
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| agent.version | string | `"9.0.0"` | elastic-agent version |
| agent.image | object | `{"pullPolicy":"IfNotPresent","repository":"docker.elastic.co/beats/elastic-agent","tag":"9.0.0-SNAPSHOT"}` | image configuration |
| agent.image | object | `{"pullPolicy":"IfNotPresent","repository":"docker.elastic.co/elastic-agent/elastic-agent","tag":"9.0.0-SNAPSHOT"}` | image configuration |
| agent.imagePullSecrets | list | `[]` | image pull secrets |
| agent.engine | string | `"k8s"` | generate kubernetes manifests or [ECK](https://github.com/elastic/cloud-on-k8s) CRDs |
| agent.unprivileged | bool | `false` | enable unprivileged mode |
Expand Down
4 changes: 2 additions & 2 deletions deploy/helm/elastic-agent/examples/eck/rendered/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down Expand Up @@ -1072,7 +1072,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ spec:
value: "false"
- name: FLEET_ENROLL
value: "1"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ spec:
value: "false"
- name: FLEET_ENROLL
value: "1"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down Expand Up @@ -1090,7 +1090,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down Expand Up @@ -1093,7 +1093,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ spec:
secretKeyRef:
key: api_key
name: es-api-secret
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down Expand Up @@ -1086,7 +1086,7 @@ spec:
secretKeyRef:
key: api_key
name: es-api-secret
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down Expand Up @@ -1250,7 +1250,7 @@ spec:
secretKeyRef:
key: api_key
name: es-api-secret
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down Expand Up @@ -1109,7 +1109,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ spec:
secretKeyRef:
key: api_key
name: es-api-secret
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
fieldPath: metadata.name
- name: STATE_PATH
value: /usr/share/elastic-agent/state
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ spec:
fieldPath: metadata.name
- name: STATE_PATH
value: /usr/share/elastic-agent/state
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down Expand Up @@ -1070,7 +1070,7 @@ spec:
value: /usr/share/elastic-agent/state
- name: ELASTIC_NETINFO
value: "false"
image: docker.elastic.co/beats/elastic-agent:9.1.0-SNAPSHOT
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
name: agent
resources:
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/elastic-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ agent:
# -- image configuration
# @section -- 6 - Elastic-Agent Configuration
image:
repository: docker.elastic.co/beats/elastic-agent
repository: docker.elastic.co/elastic-agent/elastic-agent
pullPolicy: IfNotPresent
tag: "9.1.0-SNAPSHOT"
# -- image pull secrets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
env:
# Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
- name: FLEET_ENROLL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
# Uncomment if using hints feature
#initContainers:
# - name: k8s-templates-downloader
# image: docker.elastic.co/beats/elastic-agent:9.1.0
# image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
# command: ['bash']
# args:
# - -c
Expand All @@ -40,7 +40,7 @@ spec:
# mountPath: /etc/elastic-agent/inputs.d
containers:
- name: elastic-agent-standalone
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
# The API Key with access privilleges to connect to Elasticsearch. https://www.elastic.co/guide/en/fleet/current/grant-access-to-elasticsearch.html#create-api-key-standalone-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
env:
# Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
- name: FLEET_ENROLL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
env:
# Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
- name: FLEET_ENROLL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
# Uncomment if using hints feature
#initContainers:
# - name: k8s-templates-downloader
# image: docker.elastic.co/beats/elastic-agent:9.1.0
# image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
# command: ['bash']
# args:
# - -c
Expand All @@ -40,7 +40,7 @@ spec:
# mountPath: /etc/elastic-agent/inputs.d
containers:
- name: elastic-agent-standalone
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
# The API Key with access privilleges to connect to Elasticsearch. https://www.elastic.co/guide/en/fleet/current/grant-access-to-elasticsearch.html#create-api-key-standalone-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
# Uncomment if using hints feature
#initContainers:
# - name: k8s-templates-downloader
# image: docker.elastic.co/beats/elastic-agent:9.1.0
# image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
# command: ['bash']
# args:
# - -c
Expand All @@ -40,7 +40,7 @@ spec:
# mountPath: /etc/elastic-agent/inputs.d
containers:
- name: elastic-agent-standalone
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
# The API Key with access privilleges to connect to Elasticsearch. https://www.elastic.co/guide/en/fleet/current/grant-access-to-elasticsearch.html#create-api-key-standalone-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ patches:
spec:
initContainers:
- name: k8s-templates-downloader
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
command: ['bash']
args:
- -c
Expand All @@ -37,4 +37,3 @@ patches:
volumes:
- name: external-inputs
emptyDir: {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ patches:
spec:
initContainers:
- name: k8s-templates-downloader
image: docker.elastic.co/beats/elastic-agent:%VERSION%
image: docker.elastic.co/elastic-agent/elastic-agent:%VERSION%
command: ['bash']
args:
- -c
Expand All @@ -37,4 +37,3 @@ patches:
volumes:
- name: external-inputs
emptyDir: {}

2 changes: 1 addition & 1 deletion deploy/kubernetes/elastic-agent-managed-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
env:
# Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
- name: FLEET_ENROLL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: elastic-agent
image: docker.elastic.co/beats/elastic-agent:%VERSION%
image: docker.elastic.co/elastic-agent/elastic-agent:%VERSION%
env:
# Set to 1 for enrollment into Fleet server. If not set, Elastic Agent is run in standalone mode
- name: FLEET_ENROLL
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ spec:
# Uncomment if using hints feature
#initContainers:
# - name: k8s-templates-downloader
# image: docker.elastic.co/beats/elastic-agent:9.1.0
# image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
# command: ['bash']
# args:
# - -c
Expand All @@ -716,7 +716,7 @@ spec:
# mountPath: /etc/elastic-agent/inputs.d
containers:
- name: elastic-agent-standalone
image: docker.elastic.co/beats/elastic-agent:9.1.0
image: docker.elastic.co/elastic-agent/elastic-agent:9.1.0
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
# The API Key with access privilleges to connect to Elasticsearch. https://www.elastic.co/guide/en/fleet/current/grant-access-to-elasticsearch.html#create-api-key-standalone-agent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
# Uncomment if using hints feature
#initContainers:
# - name: k8s-templates-downloader
# image: docker.elastic.co/beats/elastic-agent:%VERSION%
# image: docker.elastic.co/elastic-agent/elastic-agent:%VERSION%
# command: ['bash']
# args:
# - -c
Expand All @@ -40,7 +40,7 @@ spec:
# mountPath: /etc/elastic-agent/inputs.d
containers:
- name: elastic-agent-standalone
image: docker.elastic.co/beats/elastic-agent:%VERSION%
image: docker.elastic.co/elastic-agent/elastic-agent:%VERSION%
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
# The API Key with access privilleges to connect to Elasticsearch. https://www.elastic.co/guide/en/fleet/current/grant-access-to-elasticsearch.html#create-api-key-standalone-agent
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/packaging/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ shared:

- &docker_elastic_spec
extra_vars:
repository: 'docker.elastic.co/beats'
repository: 'docker.elastic.co/elastic-agent'

- &agent_docker_spec
<<: *agent_binary_spec
Expand Down
Loading

0 comments on commit ed7c19f

Please sign in to comment.