Created
July 24, 2015 21:25
-
-
Save ae6rt/e9a937a8ee6078bb8530 to your computer and use it in GitHub Desktop.
SkyDNS Kubernetes replication controller resource
This file contains hidden or 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: ReplicationController | |
metadata: | |
labels: | |
k8s-app: kube-dns | |
kubernetes.io/cluster-service: "true" | |
version: v5 | |
name: kube-dns-v5 | |
namespace: kube-system | |
spec: | |
replicas: 1 | |
selector: | |
k8s-app: kube-dns | |
version: v5 | |
template: | |
metadata: | |
labels: | |
k8s-app: kube-dns | |
kubernetes.io/cluster-service: "true" | |
version: v5 | |
spec: | |
containers: | |
- | |
command: | |
- /usr/local/bin/etcd | |
- "-listen-client-urls" | |
- "http://127.0.0.1:2379,http://127.0.0.1:4001" | |
- "-advertise-client-urls" | |
- "http://127.0.0.1:2379,http://127.0.0.1:4001" | |
- "-initial-cluster-token" | |
- skydns-etcd | |
image: "gcr.io/google_containers/etcd:2.0.9" | |
name: etcd | |
resources: | |
limits: | |
cpu: 100m | |
memory: 50Mi | |
- | |
args: | |
- "-domain=cluster.local" | |
- "-kube_master_url=http://10.7.114.81:8080" | |
image: "gcr.io/google_containers/kube2sky:1.11" | |
name: kube2sky | |
resources: | |
limits: | |
cpu: 100m | |
memory: 50Mi | |
- | |
args: | |
- "-machines=http://localhost:4001" | |
- "-addr=0.0.0.0:53" | |
- "-domain=cluster.local" | |
image: "gcr.io/google_containers/skydns:2015-03-11-001" | |
livenessProbe: | |
exec: | |
command: | |
- /bin/sh | |
- "-c" | |
- "nslookup kubernetes.default.svc.cluster.local localhost >/dev/null" | |
initialDelaySeconds: 30 | |
timeoutSeconds: 5 | |
name: skydns | |
ports: | |
- | |
containerPort: 53 | |
name: dns | |
protocol: UDP | |
- | |
containerPort: 53 | |
name: dns-tcp | |
protocol: TCP | |
resources: | |
limits: | |
cpu: 100m | |
memory: 50Mi | |
dnsPolicy: Default | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taken from the Kubernetes v0.21.1 source code base. The example uses cluster.local as the domain. Choose your own portal IP address.