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

[kwok] Provided service for exec #236

Closed
wzshiming opened this issue Jan 28, 2023 · 0 comments · Fixed by #430
Closed

[kwok] Provided service for exec #236

wzshiming opened this issue Jan 28, 2023 · 0 comments · Fixed by #430
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@wzshiming
Copy link
Member

wzshiming commented Jan 28, 2023

# Match pods
kind: ClusterExec
apiVersion: kwok.x-k8s.io/v1alpha1
metadata:
  name: cluster-exec-rules
spec:
  selector:
    matchNamespaces:
      - podNamespace
    matchNames:
      - podName
  execs: []
--- 
# Just for a Pod
kind: Exec
apiVersion: kwok.x-k8s.io/v1alpha1
metadata:
  name: podName
  namespace: podNamespace
spec:
  execs:
    - containers:
        - containerName
      local:
        workDir: "/workdir"
        envs:
          - <envkey>=<envvalue>

      # Maybe support ssh in future
      # ssh:
      #   address:
      #  # todo

/kind feature

@wzshiming wzshiming added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 28, 2023
@wzshiming wzshiming changed the title Provided service for exec [kwok] Provided service for exec Jan 28, 2023
@wzshiming wzshiming added this to the v0.2 milestone Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants