Skip to content

Instantly share code, notes, and snippets.

@mtsmfm
Last active August 10, 2021 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtsmfm/7d582a83f2c963273612d6dcd8f856c1 to your computer and use it in GitHub Desktop.
Save mtsmfm/7d582a83f2c963273612d6dcd8f856c1 to your computer and use it in GitHub Desktop.
Install eclipse che on docker desktop
$ kubectl apply -f https://gist.githubusercontent.com/mtsmfm/7d582a83f2c963273612d6dcd8f856c1/raw/6ebaff9d92a062d7cb886ff22bcad57c36f6f1cf/coredns-configmap.yaml
$ kubectl patch deployment coredns -n kube-system --patch "$(curl https://gist.githubusercontent.com/mtsmfm/7d582a83f2c963273612d6dcd8f856c1/raw/6ebaff9d92a062d7cb886ff22bcad57c36f6f1cf/coredns-deployment-patch.yaml)"
$ chectl server:deploy --platform=docker-desktop --domain che.127.0.0.1.nip.io
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
data:
Corefile: |
.:53 {
errors
health {
lameduck 5s
}
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
}
prometheus :9153
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}
che.127.0.0.1.nip.io {
file /etc/coredns/che.127.0.0.1.nip.io.db
}
che.127.0.0.1.nip.io.db: |
@ IN SOA host.docker.internal. host.docker.internal. 2021081000 7200 3600 1209600 3600
@ IN CNAME host.docker.internal.
* IN CNAME host.docker.internal.
spec:
template:
spec:
volumes:
- configMap:
name: coredns
items:
- key: Corefile
path: Corefile
- key: che.127.0.0.1.nip.io.db
path: che.127.0.0.1.nip.io.db
name: config-volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment