• Yu-Ju Hong's avatar
    kubelet: revamp the pod/container naming scheme · fe70be92
    Yu-Ju Hong authored
    There are two main goals for this change.
    
     1. Fix the naming scheme in kubelet so that it accepts DNS subdomain
        name/namespaces correctly (#4920). The design is discussed in #3453.
    
     2. Prepare for syncing the static pods back to the apiserver(#4090). This
        includes
    
      - Eliminate the source component in the internal full pod name (#4922). Pods
        no longer need sources as they will all be sync'd via apiserver.
    
      - Changing the naming scheme for the static (file-, http-, and etcd-based)
        pods such that they are distinguishable when syncing back to the apiserver.
    
    The changes includes:
      *	name = <pod.Name>-<hostname>
      * namespace = <cluster_namespace> (i.e. "default" for now).
      * container_name = k8s_<contianer_name>.<hash_of_container>_<pod_name>_<namespace>_<uid>_<random>
    
    Note that this is not backward-compatible, meaning the kubelet won't recognize
    existing running containers using the old naming scheme.
    fe70be92
Name
Last commit
Last update
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
contrib Loading commit data...
docs Loading commit data...
examples Loading commit data...
hack Loading commit data...
hooks Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
test Loading commit data...
third_party Loading commit data...
www Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIB.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DESIGN.md Loading commit data...
LICENSE Loading commit data...
MAINTAINERS.md Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
logo.pdf Loading commit data...
logo.png Loading commit data...
logo.svg Loading commit data...
logo_usage_guidelines.md Loading commit data...