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

Remove outdated syntax #148

Closed
wants to merge 1 commit into from

Conversation

JamesMcMahon
Copy link
Contributor

Deployment can not be created directly with port and replicas in the newer versions of kubectl.

See #143

Deployment can not be created directly with port and replicas in the newer versions of kubectl.

See  dgkanatsios#143
@dgkanatsios
Copy link
Owner

Are you sure? Works for me on kubectl 1.19.2

dgkanatsios@digkanat:dgkanatsios$ kubectl create deploy nginx --image=nginx:1.7.8 --replicas=2 --port=80
deployment.apps/nginx created
dgkanatsios@digkanat:dgkanatsios$ k get po
NAME                    READY   STATUS    RESTARTS   AGE
nginx-5b6f47948-4d9gd   1/1     Running   0          17s
nginx-5b6f47948-f45vd   1/1     Running   0          17s
dgkanatsios@digkanat:dgkanatsios$ k version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.2", GitCommit:"f5743093fd1c663cb0cbc89748f730662345d44d", GitTreeState:"clean", BuildDate:"2020-09-16T13:41:02Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"73ec19bdfc6008cd3ce6de96c663f70a69e2b8fc", GitTreeState:"clean", BuildDate:"2020-09-17T04:17:08Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}

@JamesMcMahon
Copy link
Contributor Author

Oh! I swear this didn't work in kubectl 1.18, but it may have been something else going on.

Closing.

@JamesMcMahon JamesMcMahon deleted the patch-1 branch November 21, 2020 02:02
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

Successfully merging this pull request may close these issues.

2 participants