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

Support multiple nodes (agents) in shared mode #167

Open
jp-gouin opened this issue Dec 27, 2024 · 0 comments
Open

Support multiple nodes (agents) in shared mode #167

jp-gouin opened this issue Dec 27, 2024 · 0 comments
Labels
enhancement New feature or request priority/1 virtual-kubelet all virtual kubelet related issues

Comments

@jp-gouin
Copy link
Collaborator

Currently the virtual-kubelet register a single node in the virtual cluster.
This would impact application using `affinity. For example, pod running on separate nodes won't be scheduled

apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample-app-affinity
spec:
  replicas: 3
  selector:
    matchLabels:
      app: sample-app-affinity
  template:
    metadata:
      labels:
        app: sample-app-affinity
    spec:
      containers:
        - name: sample-container
          image: nginx
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchExpressions:
                  - key: app
                    operator: In
                    values:
                      - sample-app-affinity
              topologyKey: "kubernetes.io/hostname"
@jp-gouin jp-gouin added virtual-kubelet all virtual kubelet related issues priority/1 enhancement New feature or request labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/1 virtual-kubelet all virtual kubelet related issues
Projects
None yet
Development

No branches or pull requests

1 participant