Skip to content

kubectl version issue #5

@hongbo-miao

Description

@hongbo-miao

--replicas was added in version 1.19 based on https://stackoverflow.com/a/66794176/2000548

Hmm, this repo kubectl server is using 1.18.2

K8S_VERSION = "1.18.2"

This is when I run it in host machine (macOS):

kubectl version --short

Client Version: v1.22.3
Server Version: v1.18.2

In README, one step it runs

kubectl run --image nginx --replicas 3 nginx-demo

When I run it in host machine, it will show error

Error: unknown flag: --replicas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions