Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/85063/virtual/www/domains/waldauf.org/lib/plugins/color/syntax.php:1) in /data/web/virtuals/85063/virtual/www/domains/waldauf.org/inc/actions.php on line 180
technology:k8s:kubernetes:addons - WiKi

Kubernetes Addons

Kube-DNS

Secret

If you use company's HUB server, you should import key secret for communication with remote HUB server.

  • Create definition in YAML file:
    cat > nexus3_secret.yml << EOF
    apiVersion: v1
    data:
      .dockercfg: ey****X0=
    kind: Secret
    metadata:
      name: nexus3
    type: kubernetes.io/dockercfg
    EOF
  • Load new secret into K8s:
    kubeadm$ kubectl create --namespase kube-system -f nexus3_secret.yml 
    secret "nexus3" created

Installation

Create file descriptors for kube-dns:

  • ''kubedns-controller.yml''
  • ''kubedns-svc.yml''


Create ReplicationController with kubectl:

kubectl create -f /path/to/kubedns-controller.yml
kubectl create -f /path/to/kubedns-svc.yml


Checking that everything is alright:

  • Check “everything”:
    kubeadm$ kubectl get all --all-namespaces
    NAMESPACE     NAME                    READY     STATUS    RESTARTS   AGE
    kube-system   po/kube-dns-v20-zpqqp   2/3       Running   2          10m
    
    NAMESPACE     NAME              DESIRED   CURRENT   READY     AGE
    kube-system   rc/kube-dns-v20   1         1         0         10m
    
    NAMESPACE   NAME             CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
    default     svc/kubernetes   10.6.142.1   <none>        443/TCP   1h
  • Check pod's description: Example output
Navigation
Print/export
Toolbox