Skip to content

Commit

Permalink
Merge b15c873 into 5b752de
Browse files Browse the repository at this point in the history
  • Loading branch information
lowkeyliesmyth authored May 9, 2020
2 parents 5b752de + b15c873 commit 7a8e3d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorials/hostport.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ The main use cases that inspired this feature is the necessity for fixed address

We will go through a small example of deploying a simple Kafka with use of a headless service.

### Exernal DNS
### External DNS

A simple deploy could look like this:
### Manifest (for clusters without RBAC enabled)
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: exeternal-dns
name: external-dns
spec:
strategy:
type: Recreate
Expand Down Expand Up @@ -81,7 +81,7 @@ subjects:
apiVersion: apps/v1
kind: Deployment
metadata:
name: exeternal-dns
name: external-dns
spec:
strategy:
type: Recreate
Expand Down Expand Up @@ -111,7 +111,7 @@ spec:
### 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
apiVersion: apps/v1beta1
Expand Down Expand Up @@ -155,7 +155,7 @@ spec:
requests:
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

Expand Down

0 comments on commit 7a8e3d1

Please sign in to comment.