Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

annotation of sidecar.istio.io/inject: "false" in TFJob got igored #2040

Closed
yhwang opened this issue Sep 29, 2021 · 3 comments
Closed

annotation of sidecar.istio.io/inject: "false" in TFJob got igored #2040

yhwang opened this issue Sep 29, 2021 · 3 comments

Comments

@yhwang
Copy link
Member

yhwang commented Sep 29, 2021

I am verifying v1.4-rc1. I have tfjob like this:

apiVersion: "kubeflow.org/v1"
kind: TFJob
metadata:
  name: tfjob-simple
  namespace: yh-wang
  annotations:
    sidecar.istio.io/inject: "false"
spec:
   tfReplicaSpecs:
     Worker:
       replicas: 2
       restartPolicy: OnFailure
       template:
         metadata:
           annotations:
             sidecar.istio.io/inject: "false"
         spec:
           containers:
             - name: tensorflow
               image: gcr.io/kubeflow-ci/tf-mnist-with-summaries:1.0
               command:
                 - "python"
                 - "/var/tf_mnist/mnist_with_summaries.py"

and apply it to the user namespace : my-namespace. I tried to add the annotation in two places. no luck.
I always got istio-proxy sidecar:

  Normal   Created    10s   kubelet            Created container tensorflow
  Normal   Started    9s    kubelet            Started container tensorflow
  Normal   Pulling    9s    kubelet            Pulling image "docker.io/istio/proxyv2:1.9.6"
  Normal   Pulled     8s    kubelet            Successfully pulled image "docker.io/istio/proxyv2:1.9.6" in 829.923573ms
  Normal   Created    8s    kubelet            Created container istio-proxy
  Normal   Started    7s    kubelet            Started container istio-proxy

is this a known behavior change?

@andreyvelich
Copy link
Member

Thank you for testing Training Operators @yhwang!

This should be fixed in: #2033 and included in v1.4-branch.
cc @kubeflow/wg-training-leads

@yhwang
Copy link
Member Author

yhwang commented Sep 29, 2021

Thanks for the info. Then I will wait for the rc2 and verify it again then. Let me close this issue for now.

@yhwang yhwang closed this as completed Sep 29, 2021
@yhwang
Copy link
Member Author

yhwang commented Oct 2, 2021

verified this again with v1.4.0-rc.2. works properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants