This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 3 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 20 | |
selector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
annotations: | |
dns.alpha.kubernetes.io/internal: api.internal.dnishi-kops2.k8s.local | |
scheduler.alpha.kubernetes.io/critical-pod: "" | |
creationTimestamp: null | |
labels: | |
k8s-app: kube-apiserver | |
name: kube-apiserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
annotations: | |
scheduler.alpha.kubernetes.io/critical-pod: "" | |
creationTimestamp: null | |
labels: | |
k8s-app: kube-controller-manager | |
name: kube-controller-manager | |
namespace: kube-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Kubernetes Kubelet Documentation=https://github.com/kubernetes/kubernetes | |
[Service] | |
ExecStartPre=/usr/bin/mkdir -p /etc/kubernetes/manifests | |
ExecStart=/usr/bin/kubelet \ | |
--api-servers=http://127.0.0.1:8080 \ | |
--allow-privileged=true \ | |
--config=/etc/kubernetes/manifests \ | |
--v=2 Restart=on-failure RestartSec=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DAEMON_ARGS="--allow-privileged=true --cgroup-root=/ --cloud-provider=aws --cluster-dns=100.64.0.10 --cluster-domain=cluster.local --enable-debugging-handlers=true --hostname-override=ip-172-20-47-80.ec2.internal --kubeconfig=/var/lib/kubelet/kubeconfig --network-plugin-mtu=9001 --network-plugin=kubenet --node-labels=kops.k8s.io/instancegroup=nodes,kubernetes.io/role=node,node-role.kubernetes.io/node= --non-masquerade-cidr=100.64.0.0/10 --pod-infra-container-image=k8s.gcr.io/pause-amd64:3.0 --pod-manifest-path=/etc/kubernetes/manifests --register-schedulable=true --v=2 --cni-bin-dir=/opt/cni/bin/ --cni-conf-dir=/etc/cni/net.d/ --cni-bin-dir=/opt/cni/bin/" | |
HOME="/root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Service] | |
Environment=KUBELET_IMAGE_TAG=${K8S_VER} | |
Environment="RKT_RUN_ARGS=--uuid-file-save=/var/run/kubelet-pod.uuid \ | |
--volume var-log,kind=host,source=/var/log \ | |
--mount volume=var-log,target=/var/log \ | |
--volume dns,kind=host,source=/etc/resolv.conf \ | |
--mount volume=dns,target=/etc/resolv.conf" | |
ExecStartPre=/usr/bin/mkdir -p /etc/kubernetes/manifests | |
ExecStartPre=/usr/bin/mkdir -p /var/log/containers | |
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example of how to setup cloud-controller-manger as a Daemonset in your cluster. | |
# It assumes that your masters can run pods and has the role node-role.kubernetes.io/master | |
# Note that this Daemonset will not work straight out of the box for your cloud, this is | |
# meant to be a guideline. | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: cloud-controller-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: kube-apiserver | |
namespace: kube-system | |
spec: | |
hostNetwork: true | |
containers: | |
- name: kube-apiserver | |
image: quay.io/coreos/hyperkube:v1.5.4_coreos.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: kube-controller-manager | |
namespace: kube-system | |
spec: | |
hostNetwork: true | |
containers: | |
- name: kube-controller-manager | |
image: quay.io/coreos/hyperkube:v1.5.4_coreos.0 |
OlderNewer