Skip to content

kubectl apply drops all hostAlias entries when removing a duplicate entry from an existing object #91670

Closed
@chandanpasunoori

Description

@chandanpasunoori

What happened:
When applying deployment yaml file with kubectl few out of many host aliases are ignored, only applying partial hostaliases.

I tried with json also but bahavior is same, tried with kubectl edit again bahavior is same.
But when I updated directly in GKE console its applying correctly.

What you expected to happen:

It should apply all host aliases correctly.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
we have grouped domains based naked domains, all points to single ip.
changed all hosts to single hostname list and single ip but behaviour is same.

Environment:
GKE

  • Kubernetes version (use kubectl version):
kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T23:35:15Z", GoVersion:"go1.14.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-gke.9", GitCommit:"e1af17fd873e15a48769e2c7b9851405f89e3d0d", GitTreeState:"clean", BuildDate:"2020-04-06T20:56:54Z", GoVersion:"go1.12.17b4", Compiler:"gc", Platform:"linux/amd64"}
  • Cloud provider or hardware configuration:
    GKE
  • OS (e.g: cat /etc/os-release):
    COS
  • Kernel (e.g. uname -a):
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.sig/cliCategorizes an issue or PR as relevant to SIG CLI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions