Use consistent headless service name

Fix a typo and update the headless service name to be consistent.
This commit is contained in:
Dave Parker 2020-05-06 16:14:51 -07:00 committed by GitHub
parent 4c7c3be807
commit defe8b7ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ A simple deploy could look like this:
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: exeternal-dns name: external-dns
spec: spec:
strategy: strategy:
type: Recreate type: Recreate
@ -111,7 +111,7 @@ spec:
### Kafka Stateful Set ### Kafka Stateful Set
First lets deploy a Kafka Stateful set, a simple example(a lot of stuff is missing) with a headless service called `kafka-hsvc` First lets deploy a Kafka Stateful set, a simple example(a lot of stuff is missing) with a headless service called `ksvc`
```yaml ```yaml
apiVersion: apps/v1beta1 apiVersion: apps/v1beta1
@ -155,7 +155,7 @@ spec:
requests: requests:
storage: 500Gi storage: 500Gi
``` ```
Very important here, is to set the `hostport`(only works if the PodSecurityPolicy allows it)! and in case your app requires an actual hostname inside the container, unlike Kafka, which can advertise on another address, you have to set the hostname yourself. Very important here, is to set the `hostPort`(only works if the PodSecurityPolicy allows it)! and in case your app requires an actual hostname inside the container, unlike Kafka, which can advertise on another address, you have to set the hostname yourself.
### Headless Service ### Headless Service