Skip to content

Commit 3f6e6ae

Browse files
authored
Images: Remove OpenTelemetry. (#12024)
1 parent f369ffb commit 3f6e6ae

19 files changed

+18
-668
lines changed

.github/workflows/images.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
ext-auth-example-authsvc: ${{ steps.filter.outputs.ext-auth-example-authsvc }}
3838
nginx: ${{ steps.filter.outputs.nginx }}
3939
nginx125: ${{ steps.filter.outputs.nginx125 }}
40-
opentelemetry: ${{ steps.filter.outputs.opentelemetry }}
4140

4241
steps:
4342
- name: Checkout
@@ -65,8 +64,6 @@ jobs:
6564
- 'images/ext-auth-example-authsvc/**'
6665
nginx:
6766
- 'images/nginx/**'
68-
opentelemetry:
69-
- 'images/opentelemetry/**'
7067
nginx125:
7168
- 'images/nginx-1.25/TAG'
7269
@@ -166,23 +163,6 @@ jobs:
166163
run: |
167164
cd images/ && make NAME=kube-webhook-certgen test test-e2e
168165
169-
opentelemetry:
170-
runs-on: ubuntu-latest
171-
env:
172-
PLATFORMS: linux/amd64,linux/arm,linux/arm64
173-
needs: changes
174-
if: |
175-
(needs.changes.outputs.opentelemetry == 'true')
176-
strategy:
177-
matrix:
178-
nginx: ['1.25.3', '1.21.6']
179-
steps:
180-
- name: Checkout
181-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
182-
- name: image build
183-
run: |
184-
cd images/opentelemetry && make NGINX_VERSION=${{ matrix.nginx }} build
185-
186166
nginx125:
187167
permissions:
188168
contents: write

charts/ingress-nginx/README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ As of version `1.26.0` of this chart, by simply not providing any clusterIP valu
310310
| controller.extraContainers | list | `[]` | Additional containers to be added to the controller pod. See https://github.com/lemonldap-ng-controller/lemonldap-ng-controller as example. |
311311
| controller.extraEnvs | list | `[]` | Additional environment variables to set |
312312
| controller.extraInitContainers | list | `[]` | Containers, which are run before the app containers are started. |
313-
| controller.extraModules | list | `[]` | Modules, which are mounted into the core nginx image. See values.yaml for a sample to add opentelemetry module |
313+
| controller.extraModules | list | `[]` | Modules, which are mounted into the core nginx image. |
314314
| controller.extraVolumeMounts | list | `[]` | Additional volumeMounts to the controller main container. |
315315
| controller.extraVolumes | list | `[]` | Additional volumes to the controller pod. |
316316
| controller.healthCheckHost | string | `""` | Address to bind the health check endpoint. It is better to set this option to the internal node address if the Ingress-Nginx Controller is running in the `hostNetwork: true` mode. |
@@ -393,21 +393,6 @@ As of version `1.26.0` of this chart, by simply not providing any clusterIP valu
393393
| controller.name | string | `"controller"` | |
394394
| controller.networkPolicy.enabled | bool | `false` | Enable 'networkPolicy' or not |
395395
| controller.nodeSelector | object | `{"kubernetes.io/os":"linux"}` | Node labels for controller pod assignment # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ # |
396-
| controller.opentelemetry.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | |
397-
| controller.opentelemetry.containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
398-
| controller.opentelemetry.containerSecurityContext.readOnlyRootFilesystem | bool | `true` | |
399-
| controller.opentelemetry.containerSecurityContext.runAsGroup | int | `65532` | |
400-
| controller.opentelemetry.containerSecurityContext.runAsNonRoot | bool | `true` | |
401-
| controller.opentelemetry.containerSecurityContext.runAsUser | int | `65532` | The image's default user, inherited from its base image `cgr.dev/chainguard/static`. |
402-
| controller.opentelemetry.containerSecurityContext.seccompProfile.type | string | `"RuntimeDefault"` | |
403-
| controller.opentelemetry.enabled | bool | `false` | |
404-
| controller.opentelemetry.image.digest | string | `"sha256:f7604ac0547ed64d79b98d92133234e66c2c8aade3c1f4809fed5eec1fb7f922"` | |
405-
| controller.opentelemetry.image.distroless | bool | `true` | |
406-
| controller.opentelemetry.image.image | string | `"ingress-nginx/opentelemetry-1.25.3"` | |
407-
| controller.opentelemetry.image.registry | string | `"registry.k8s.io"` | |
408-
| controller.opentelemetry.image.tag | string | `"v20240813-b933310d"` | |
409-
| controller.opentelemetry.name | string | `"opentelemetry"` | |
410-
| controller.opentelemetry.resources | object | `{}` | |
411396
| controller.podAnnotations | object | `{}` | Annotations to be added to controller pods # |
412397
| controller.podLabels | object | `{}` | Labels to add to the pod container metadata |
413398
| controller.podSecurityContext | object | `{}` | Security context for controller pods |

charts/ingress-nginx/ci/controller-daemonset-extra-modules-values.yaml

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

charts/ingress-nginx/ci/controller-daemonset-opentelemetry-values.yaml

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

charts/ingress-nginx/ci/controller-deployment-extra-modules-values.yaml

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

charts/ingress-nginx/ci/controller-deployment-opentelemetry-values.yaml

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

charts/ingress-nginx/templates/controller-daemonset.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ spec:
144144
hostPort: {{ $key }}
145145
{{- end }}
146146
{{- end }}
147-
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
147+
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules) }}
148148
volumeMounts:
149-
{{- if (or .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
149+
{{- if .Values.controller.extraModules }}
150150
- name: modules
151151
{{- if .Values.controller.image.chroot }}
152152
mountPath: /chroot/modules_mount
@@ -174,7 +174,7 @@ spec:
174174
{{- if .Values.controller.extraContainers }}
175175
{{- toYaml .Values.controller.extraContainers | nindent 8 }}
176176
{{- end }}
177-
{{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
177+
{{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules) }}
178178
initContainers:
179179
{{- if .Values.controller.extraInitContainers }}
180180
{{- toYaml .Values.controller.extraInitContainers | nindent 8 }}
@@ -185,12 +185,6 @@ spec:
185185
{{- include "extraModules" (dict "name" .name "image" .image "containerSecurityContext" $containerSecurityContext "resources" .resources) | nindent 8 }}
186186
{{- end }}
187187
{{- end }}
188-
{{- if .Values.controller.opentelemetry.enabled }}
189-
{{- with .Values.controller.opentelemetry }}
190-
{{- $containerSecurityContext := .containerSecurityContext | default $.Values.controller.containerSecurityContext }}
191-
{{- include "extraModules" (dict "name" .name "image" .image "containerSecurityContext" $containerSecurityContext "resources" .resources) | nindent 8 }}
192-
{{- end }}
193-
{{- end }}
194188
{{- end }}
195189
{{- if .Values.controller.hostNetwork }}
196190
hostNetwork: {{ .Values.controller.hostNetwork }}
@@ -209,9 +203,9 @@ spec:
209203
{{- end }}
210204
serviceAccountName: {{ template "ingress-nginx.serviceAccountName" . }}
211205
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
212-
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
206+
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules) }}
213207
volumes:
214-
{{- if (or .Values.controller.extraModules .Values.controller.opentelemetry.enabled)}}
208+
{{- if .Values.controller.extraModules }}
215209
- name: modules
216210
emptyDir: {}
217211
{{- end }}

charts/ingress-nginx/templates/controller-deployment.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ spec:
150150
hostPort: {{ $key }}
151151
{{- end }}
152152
{{- end }}
153-
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
153+
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules) }}
154154
volumeMounts:
155-
{{- if (or .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
155+
{{- if .Values.controller.extraModules }}
156156
- name: modules
157157
{{- if .Values.controller.image.chroot }}
158158
mountPath: /chroot/modules_mount
@@ -180,7 +180,7 @@ spec:
180180
{{- if .Values.controller.extraContainers }}
181181
{{- toYaml .Values.controller.extraContainers | nindent 8 }}
182182
{{- end }}
183-
{{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
183+
{{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules) }}
184184
initContainers:
185185
{{- if .Values.controller.extraInitContainers }}
186186
{{- toYaml .Values.controller.extraInitContainers | nindent 8 }}
@@ -191,12 +191,6 @@ spec:
191191
{{- include "extraModules" (dict "name" .name "image" .image "containerSecurityContext" $containerSecurityContext "resources" .resources) | nindent 8 }}
192192
{{- end }}
193193
{{- end }}
194-
{{- if .Values.controller.opentelemetry.enabled }}
195-
{{- with .Values.controller.opentelemetry }}
196-
{{- $containerSecurityContext := .containerSecurityContext | default $.Values.controller.containerSecurityContext }}
197-
{{- include "extraModules" (dict "name" .name "image" .image "containerSecurityContext" $containerSecurityContext "resources" .resources) | nindent 8 }}
198-
{{- end }}
199-
{{- end }}
200194
{{- end }}
201195
{{- if .Values.controller.hostNetwork }}
202196
hostNetwork: {{ .Values.controller.hostNetwork }}
@@ -215,9 +209,9 @@ spec:
215209
{{- end }}
216210
serviceAccountName: {{ template "ingress-nginx.serviceAccountName" . }}
217211
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
218-
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
212+
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules) }}
219213
volumes:
220-
{{- if (or .Values.controller.extraModules .Values.controller.opentelemetry.enabled)}}
214+
{{- if .Values.controller.extraModules }}
221215
- name: modules
222216
emptyDir: {}
223217
{{- end }}

charts/ingress-nginx/values.yaml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ controller:
682682
# image: busybox
683683
# command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;']
684684

685-
# -- Modules, which are mounted into the core nginx image. See values.yaml for a sample to add opentelemetry module
685+
# -- Modules, which are mounted into the core nginx image.
686686
extraModules: []
687687
# - name: mytestmodule
688688
# image:
@@ -711,31 +711,6 @@ controller:
711711
# will be executed as initContainers, to move its config files within the
712712
# mounted volume.
713713

714-
opentelemetry:
715-
enabled: false
716-
name: opentelemetry
717-
image:
718-
registry: registry.k8s.io
719-
image: ingress-nginx/opentelemetry-1.25.3
720-
## for backwards compatibility consider setting the full image url via the repository value below
721-
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
722-
## repository:
723-
tag: v20240813-b933310d
724-
digest: sha256:f7604ac0547ed64d79b98d92133234e66c2c8aade3c1f4809fed5eec1fb7f922
725-
distroless: true
726-
containerSecurityContext:
727-
runAsNonRoot: true
728-
# -- The image's default user, inherited from its base image `cgr.dev/chainguard/static`.
729-
runAsUser: 65532
730-
runAsGroup: 65532
731-
allowPrivilegeEscalation: false
732-
seccompProfile:
733-
type: RuntimeDefault
734-
capabilities:
735-
drop:
736-
- ALL
737-
readOnlyRootFilesystem: true
738-
resources: {}
739714
admissionWebhooks:
740715
name: admission
741716
annotations: {}

docs/user-guide/third-party-addons/opentelemetry.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,7 @@ graph TB
147147

148148
To install the example and collectors run:
149149

150-
1. Enable Ingress addon with:
151-
152-
```yaml
153-
opentelemetry:
154-
enabled: true
155-
image: registry.k8s.io/ingress-nginx/opentelemetry-1.25.3:v20240813-b933310d@sha256:f7604ac0547ed64d79b98d92133234e66c2c8aade3c1f4809fed5eec1fb7f922
156-
containerSecurityContext:
157-
allowPrivilegeEscalation: false
158-
```
159-
160-
2. Enable OpenTelemetry and set the otlp-collector-host:
150+
1. Enable OpenTelemetry and set the otlp-collector-host:
161151

162152
```yaml
163153
$ echo '
@@ -183,7 +173,7 @@ To install the example and collectors run:
183173
' | kubectl replace -f -
184174
```
185175

186-
4. Deploy otel-collector, grafana and Jaeger backend:
176+
2. Deploy otel-collector, grafana and Jaeger backend:
187177

188178
```bash
189179
# add helm charts needed for grafana and OpenTelemetry collector
@@ -218,7 +208,7 @@ To install the example and collectors run:
218208
make deploy-app
219209
```
220210

221-
5. Make a few requests to the Service:
211+
4. Make a few requests to the Service:
222212

223213
```bash
224214
kubectl port-forward --namespace=ingress-nginx service/ingress-nginx-controller 8090:80
@@ -247,23 +237,23 @@ To install the example and collectors run:
247237
RawContentLength : 21
248238
```
249239

250-
6. View the Grafana UI:
240+
5. View the Grafana UI:
251241

252242
```bash
253243
kubectl port-forward --namespace=observability service/grafana 3000:80
254244
```
255245
In the Grafana interface we can see the details:
256246
![grafana screenshot](../../images/otel-grafana-demo.png "grafana screenshot")
257247

258-
7. View the Jaeger UI:
248+
6. View the Jaeger UI:
259249

260250
```bash
261251
kubectl port-forward --namespace=observability service/jaeger-all-in-one-query 16686:16686
262252
```
263253
In the Jaeger interface we can see the details:
264254
![Jaeger screenshot](../../images/otel-jaeger-demo.png "Jaeger screenshot")
265255

266-
8. View the Zipkin UI:
256+
7. View the Zipkin UI:
267257

268258
```bash
269259
kubectl port-forward --namespace=observability service/zipkin 9411:9411

0 commit comments

Comments
 (0)