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

initContainer not work in ACI (AKS 1.22.6 version) #229

Closed
zhoufenqin opened this issue Jul 14, 2022 · 4 comments
Closed

initContainer not work in ACI (AKS 1.22.6 version) #229

zhoufenqin opened this issue Jul 14, 2022 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@zhoufenqin
Copy link

After creating AKS in Portal with install virtual node followed by this doc. The initContainer not work in ACI containers. It may caused because AKS call ACI with low apiVersion. The initContainer is supported after 2019-12-01 apiVersion in ACI

Env

AKS version: 1.22.6
nodes in AKS cluster:

NAME                                STATUS   ROLES   AGE     VERSION
aks-agentpool-16213582-vmss000000   Ready    agent   5d23h   v1.22.6
aks-agentpool-16213582-vmss000002   Ready    agent   5d23h   v1.22.6
virtual-node-aci-linux              Ready    agent   5d23h   v1.19.10-vk-azure-aci-v1.4.1

Pods:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: aci-helloworld-initcontainer
spec:
  replicas: 1
  selector:
    matchLabels:
      app: aci-helloworld
  template:
    metadata:
      labels:
        app: aci-helloworld
    spec:
      containers:
      - name: aci-helloworld
        image: mcr.microsoft.com/azuredocs/aci-helloworld
        ports:
        - containerPort: 80
      initContainers:
      - name: init-myservice
        image: busybox:1.28
        command: ['sh', '-c', "echo initing"]
      nodeSelector:
        kubernetes.io/role: agent
        beta.kubernetes.io/os: linux
        type: virtual-kubelet
      tolerations:
      - key: virtual-kubelet.io/provider
        operator: Exists

image

@helayoty
Copy link
Member

Hey @zhoufenqin, the initContainer is a work-in-progress (#204) feature and is not supported yet.

@helayoty
Copy link
Member

duplicate #18

@helayoty helayoty added the duplicate This issue or pull request already exists label Jul 14, 2022
@zhoufenqin
Copy link
Author

@helayoty thank you :) BTW, do you known the ETA of the feature, which version will includes this feature?

@helayoty
Copy link
Member

@helayoty thank you :) BTW, do you known the ETA of the feature, which version will includes this feature?

No ETA for now. Hopefully this will land soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants