You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- modify "imagePullPolicy": "IfNotPresent" for `scope-pod-extract`
- this fix would allow to avoid `ImagePullBackOff` status for
Application pod in following scenario:
- step 1 we preload the application image into cluster
- step 2we deploy `scope k8s`
- step 3we deploy application container
- This commit will modify `scope-pod-extract` behavior
to use the image which was preloaded in step 1) instead of
pulling the image from non-existent location
Fixes: #1409
- use the same "imagePullPolicy" for `scope-pod-extract` as
for Application container
- this fix would allow to avoid `ImagePullBackOff` status for
Application pod in following scenario:
- step 1 we preload the application image into cluster
- step 2 we deploy `scope k8s`
- step 3 we deploy application container
- This commit will modify `scope-pod-extract` behavior
to use the image which was preloaded in step 1 instead of
pulling the image from non-existent location
Fixes: #1409
$ docker build -t prom-exporter -f Dockerfile.exporter .
$ kind create cluster
$ kind load docker-image cribl/scope:dev
$ docker run -it --rm cribl/scope:dev scope k8s -c tcp://in.main-default-practical-leavitt.cribl.cloud:10091 | kubectl apply -f -
$ kubectl label namespace default scope=enabled
$ kubectl get pods
$ kind load docker-image prom-exporter:latest
$ kubectl apply -f exporter.yml
Error from server (InternalError): error when creating "exporter.yml": Internal error occurred: failed calling webhook "scope.default.appscope.io": failed to call webhook: Post "https://scope.default.svc:443/mutate?timeout=10s": EOF
exporter.yml
apiVersion: v1
kind: Pod
metadata:
name: prom-exporter
spec:
containers:
image: prom-exporter
command: ["sleep", "infinity"]
imagePullPolicy: IfNotPresent
volumeMounts:
mountPath: /hostfs
volumes:
hostPath:
path: /
Dockerfile.exporter :
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
&& apt install -y
curl
emacs
gcc
gdb
lsof
vim
wget
&& rm -rf /var/lib/apt/lists/*
The text was updated successfully, but these errors were encountered: