Hi Mark,

I guess you have to create your own local image registry service which your k8s 
cluster can connect to and upload the image of flink k8s operator to the 
service. After that, you can run something like `helm install 
flink-kubernetes-operator flink-operator-repo/flink-kubernetes-operator --set 
image.repository=<YOUR_LOCAL_FLINK_K8S_OPERATOR_IMAGE> ` to tell the k8s to use 
your local image.

Best,
Biao Geng

From: Mark Lee <lifuqion...@126.com>
Date: Tuesday, November 22, 2022 at 9:01 PM
To: user@flink.apache.org <user@flink.apache.org>
Subject: Flink Operator in an off-line k8s enviroment
Hi all,
I installed flink operator following 
https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/docs/try-flink-kubernetes-operator/quick-start/.
helm repo add flink-operator-repo 
https://downloads.apache.org/flink/flink-kubernetes-operator-1.2.0/
helm install flink-kubernetes-operator 
flink-operator-repo/flink-kubernetes-operator

I execute above commands in a helm client(can touch internet) collect a k8s 
environment which cann’t connect internet.

  The flink operator is installed correctly but I got such errors for my k8s 
cluster can’t connect internet.
What steps can I do to run flink operator correctly in my off-line k8s cluster?
Should I run a local helm repo to replace the image 
“ghcr.io/apache/flink-kubernetes-operator:95128bf” to a local image?

   Thank you.

[root@localhost ~]# kubectl  get pods
NAME                                        READY   STATUS             RESTARTS 
  AGE
flink-kubernetes-operator-7797c7bd7-tpbqf   0/1     ImagePullBackOff   0        
  124m

[root@localhost ~]# kubectl  describe pod 
flink-kubernetes-operator-7797c7bd7-tpbqf | grep Image -C 5
Normal   AddedInterface  124m                    multus             Add eth0 
[10.128.6.212/14] from kube-ovn
  Warning  Failed          119m (x4 over 123m)     kubelet            Error: 
ErrImagePull
  Warning  Failed          118m (x7 over 123m)     kubelet            Error: 
ImagePullBackOff
  Normal   Pulling         34m (x19 over 124m)     kubelet            Pulling 
image "ghcr.io/apache/flink-kubernetes-operator:95128bf"
  Warning  Failed          8m53s (x23 over 123m)   kubelet            Failed to 
pull image "ghcr.io/apache/flink-kubernetes-operator:95128bf": rpc error: code 
= Unknown desc = pinging container registry ghcr.io: Get "https://ghcr.io/v2/": 
dial tcp 20.205.243.164:443: i/o timeout
  Normal   BackOff         4m20s (x424 over 123m)  kubelet            Back-off 
pulling image "ghcr.io/apache/flink-kubernetes-operator:95128bf"

Reply via email to