Re: [kubernetes/kubernetes] kubectl run from a manifest file (#63214)

3 views
Skip to first unread message

k8s-ci-robot

unread,
Apr 26, 2018, 4:03:35 PM4/26/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@jeremywadsack: Reiterating the mentions to trigger a notification:
@kubernetes/sig-cli-feature-requests

In response to this:

@kubernetes/sig-cli-feature-requests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

fejta-bot

unread,
Jul 25, 2018, 5:01:03 PM7/25/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Jeremy Wadsack

unread,
Jul 25, 2018, 11:30:44 PM7/25/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

cody1996

unread,
Oct 23, 2018, 11:18:27 PM10/23/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Is this feature not available now? I saw a flag named "filename" in the Reference, but it doesn't seem to work. The version I am using is 1.12.1.

bhack

unread,
Jan 18, 2019, 7:41:22 AM1/18/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Any news on this?

Alexander Naydenko

unread,
Apr 1, 2019, 7:28:38 AM4/1/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

any updates or workarounds?

TJ Kelly

unread,
Jun 13, 2019, 3:46:21 PM6/13/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Any update on this? I'd love to be able to define everything in a manifest file instead of having a mile-long command using overrides.

fejta-bot

unread,
Sep 11, 2019, 3:51:19 PM9/11/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Jeremy Wadsack

unread,
Sep 11, 2019, 3:57:34 PM9/11/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

Ondřej Hlaváček

unread,
Nov 26, 2019, 7:06:02 AM11/26/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

+1 here!


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Alex Kovshovik

unread,
Dec 20, 2019, 1:32:32 PM12/20/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Passing --overrides works, but the JSON has to be 1 line with no spaces or should be put into single quotes - 'overrides here'.

This breaks down when I'm trying to make it part of CI YAML config file.

It would be very nice if I could indeed specify the Pod manifest in a file.

The following works however:

kubectl run migrator --image registry.gitlab.com/shovik-group/shovik-com --overrides='{"spec":{"containers":[{"name":"migrator","image":"registry.gitlab.com/shovik-group/shovik-com","envFrom":[{"secretRef":{"name":"shovik-com"}}],"args":["bin/shovik_com","eval","ShovikCom.Release.migrate()"]}]}}' --restart=Never --image-pull-policy=Always --attach --rm

Koba

unread,
Dec 20, 2019, 2:09:00 PM12/20/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@alex-kovshovik

https://gist.github.com/lkoba/e73dcc13bd8d81907b1f4069a19979ec

I use this to run pod manifests, it works with multiline commands, volumes, secrets, labels, etc.

You may need to adapt it to your needs. At the moment it only works with Pod manifest files.

It depends on jq and y2j to parse json and convert yaml files to json.

Alex Kovshovik

unread,
Dec 20, 2019, 4:58:24 PM12/20/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

This is great, thanks for sharing! To reduce the number of dependencies, I saved my manifest file as JSON - no need for y2j. jq was already installed on that system (container).

Thank you @lkoba

fejta-bot

unread,
Mar 19, 2020, 6:04:29 PM3/19/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Jeremy Wadsack

unread,
Mar 23, 2020, 1:48:53 PM3/23/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

fejta-bot

unread,
Jun 21, 2020, 2:42:27 PM6/21/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.

/lifecycle stale

Mike Stewart

unread,
Jun 22, 2020, 12:07:49 PM6/22/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

fejta-bot

unread,
Sep 20, 2020, 1:07:29 PM9/20/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.

/lifecycle stale

klimov-gett

unread,
Oct 13, 2020, 7:34:00 PM10/13/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

I think this may also be a worthy alternative to k8s jobs
(which also don't have any supplement for the --rm option apart from feature-gate TTLAfterFinished )

In cases where parallelism and concurrency are not needed, i.e.: you only need to run one pod (but with multiple containers) to completion and delete it immediately after, using something like run --rm -f [filename] makes a lot of sense.

fejta-bot

unread,
Nov 12, 2020, 6:53:51 PM11/12/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.

/lifecycle rotten

Mike Stewart

unread,
Nov 12, 2020, 9:47:09 PM11/12/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle rotten

fejta-bot

unread,
Feb 10, 2021, 10:10:07 PM2/10/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

Jeremy Wadsack

unread,
Feb 10, 2021, 10:48:50 PM2/10/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Still would be a useful update.

/remove-lifecycle stale


On Wed, Feb 10, 2021 at 7:10 PM fejta-bot <notifi...@github.com> wrote:

> Issues go stale after 90d of inactivity.
> Mark the issue as fresh with /remove-lifecycle stale.
> Stale issues rot after an additional 30d of inactivity and eventually
> close.
>
> If this issue is safe to close now please do so with /close.
>
> Send feedback to sig-contributor-experience at kubernetes/community
> <https://github.com/kubernetes/community>.
> /lifecycle stale
>
> —
> You are receiving this because you were mentioned.

> Reply to this email directly, view it on GitHub
> <https://github.com/kubernetes/kubernetes/issues/63214#issuecomment-777177840>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAB25LEC5Q7LTSRBAYGWXMLS6NDA3ANCNFSM4E45K2VQ>
> .
>
--
Jeremy Wadsack

fejta-bot

unread,
May 12, 2021, 12:24:52 AM5/12/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

Jeremy Wadsack

unread,
May 12, 2021, 1:20:12 AM5/12/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Just had a convo with someone today about spinning up a container for shell
access is a common pattern.

/remove-lifecycle stale


On Tue, May 11, 2021 at 9:24 PM fejta-bot ***@***.***> wrote:

> Issues go stale after 90d of inactivity.
> Mark the issue as fresh with /remove-lifecycle stale.
> Stale issues rot after an additional 30d of inactivity and eventually
> close.
>
> If this issue is safe to close now please do so with /close.
>
> Send feedback to sig-contributor-experience at kubernetes/community
> <https://github.com/kubernetes/community>.
> /lifecycle stale
>
> —
> You are receiving this because you were mentioned.

> Reply to this email directly, view it on GitHub
> <https://github.com/kubernetes/kubernetes/issues/63214#issuecomment-839423093>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAB25LH4KJNXCT65KFHX22LTNH7JFANCNFSM4E45K2VQ>
> .
>
--
Jeremy Wadsack

Kubernetes Triage Robot

unread,
Aug 10, 2021, 1:44:18 AM8/10/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications on the go with GitHub Mobile for iOS or Android.

Dylan Powers

unread,
Aug 13, 2021, 1:17:59 PM8/13/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale

Marco Colli

unread,
Nov 10, 2021, 5:08:10 PM11/10/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

We need to run a complex pod definition (with configmaps, secrets, regcred, labels, etc.) and overrides seems really strange and error-prone (e.g. different base templates produced by different kubectl versions may produce errors and unexpected behaviors with the override).

Please add an -f option to pass the full pod spec (YAML) like apply -f... It would be much cleaner.

Basically run should be like apply + attach (at the same time).

Workaround: Currently we use apply + exec to use our custom pod spec... However we need to use a sleep command in order to keep the empty pod alive (before the exec). The other solution would be better.

Marco Colli

unread,
Nov 10, 2021, 6:51:24 PM11/10/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

I also confirm that using --overrides causes the program to completely ignore the command after -- ...

Kubernetes Triage Robot

unread,
Feb 8, 2022, 7:40:34 PM2/8/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1033206063@github.com>

Dylan Powers

unread,
Feb 8, 2022, 8:57:12 PM2/8/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle stale


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1033253769@github.com>

Kubernetes Triage Robot

unread,
May 9, 2022, 10:41:47 PM5/9/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1121825941@github.com>

Kubernetes Triage Robot

unread,
Jun 8, 2022, 11:22:12 PM6/8/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1150625446@github.com>

Dmitry Kovalev

unread,
Jun 9, 2022, 5:57:28 AM6/9/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/remove-lifecycle rotten


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1150920852@github.com>

Kubernetes Triage Robot

unread,
Sep 7, 2022, 6:04:36 AM9/7/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1239181775@github.com>

Kubernetes Triage Robot

unread,
Oct 7, 2022, 6:22:45 AM10/7/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1271409368@github.com>

Kubernetes Triage Robot

unread,
Nov 6, 2022, 5:57:44 AM11/6/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1304773311@github.com>

Kubernetes Prow Robot

unread,
Nov 6, 2022, 5:57:49 AM11/6/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Closed #63214 as not planned.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issue/63214/issue_event/7747118790@github.com>

Kubernetes Prow Robot

unread,
Nov 6, 2022, 5:57:50 AM11/6/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/63214/1304773331@github.com>

Reply all
Reply to author
Forward
0 new messages