Sign inSign up

rahulsom/kubehosts

By rahulsom

Updated over 8 years ago

Serves commands to run with hostess for kubernetes hosts configuration

Image
0

3.1K

rahulsom/kubehosts repository overview

= kubehosts

Alternative to default-http-backend that tells you how to configure your /etc/hosts file.

== When to use it

Typically when you configure kubernetes with ingresses, you set it up such that kubernetes updates a DNS provider with your ingresses. Sometimes, you do not intend to use a DNS provider because you're running short experiments. Sometimes, you have a DNS provider that does not have an API, and you need to have a faster way to get the DNS mappings to your users. Regardless, This pod can make that easier for you.

== How to use it

Typically you need to replace the image in default-http-backend image with this one.

[source,yaml]

apiVersion: v1 kind: ReplicationController metadata: name: default-http-backend namespace: kube-system spec: replicas: 1 selector: app: default-http-backend template: metadata: labels: app: default-http-backend kubernetes.io/cluster-service: "true" spec: containers: - image: rahulsom/kubehosts:latest imagePullPolicy: IfNotPresent livenessProbe: failureThreshold: 3 httpGet: path: /healthz port: 8080 scheme: HTTP initialDelaySeconds: 30 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 name: default-http-backend ports: - containerPort: 8080 protocol: TCP resources: limits: cpu: 10m memory: 20Mi requests: cpu: 10m memory: 20Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 60

Tag summary

Content type

Image

Digest

Size

183.1 MB

Last updated

over 8 years ago

docker pull rahulsom/kubehosts