Tag: restart
Kubernete restart a service
Kubernete restart a service, Resource will be rollout restarted
>kubectl --kubeconfig="config.yaml" rollout restart deployment --help
Restart a resource.
Resource will be rollout restarted.
Examples:
# Restart a deployment
kubectl rollout restart deployment/nginx
# Restart a daemonset
kubectl rollout restart daemonset/abc
Options:
–allow-missing-template-keys=true: If true, ignore any errors in templates when a field or map key is missing in
the template. Only applies to golang and jsonpath output formats.
-f, –filename=[]: Filename, directory, or URL to files identifying the resource to get from a server.
-k, –kustomize=”: Process the kustomization directory. This flag can’t be used together with -f or -R.
-o, –output=”: Output format. One of:
json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file.
-R, –recursive=false: Process the directory used in -f, –filename recursively. Useful when you want to manage
related manifests organized within the same directory.
–template=”: Template string or path to template file to use when -o=go-template, -o=go-template-file. The
template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
Usage:
kubectl rollout restart RESOURCE [options]
Use “kubectl options” for a list of global command-line options (applies to all commands).
>kubectl --kubeconfig="config.yaml" rollout restart deployment resourcespace --namespace="ukgoodbye"
2 – Kubernetes – how to get cluster-info
Kubernetes master is running at https://c3f1d7ac-f5b8-4ad5-8102-0015099dbd3a.k8s.ondigitalocean.com
KubeDNS is running at https://c3f1d7ac-f5b8-4ad5-8102-0015099dbd3a.k8s.ondigitalocean.com/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.