Skip to content

Commit

Permalink
update static ip docs (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 committed Jun 13, 2022
1 parent 1400d5b commit aa45662
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions docs/static-ip.md
Expand Up @@ -39,7 +39,34 @@ spec:
Use the following annotation to allocate addresses for a Workload:
- `ovn.kubernetes.io/ip_pool`: For Deployments/DaemonSets, we will randomly choose an available IP address for a Pod. For StatefulSets, the IP allocation will follow the order specified in the list.

Example:
Ipv4 Example:

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ovn-test
name: starter-backend
labels:
app: starter-backend
spec:
replicas: 2
selector:
matchLabels:
app: starter-backend
template:
metadata:
labels:
app: starter-backend
annotations:
ovn.kubernetes.io/ip_pool: 10.16.0.15;10.16.0.16;10.16.0.17
spec:
containers:
- name: backend
image: nginx:alpine
```

Dual Example:

```yaml
apiVersion: apps/v1
Expand All @@ -59,7 +86,7 @@ spec:
labels:
app: starter-backend
annotations:
ovn.kubernetes.io/ip_pool: 10.16.0.15,10.16.0.16,10.16.0.17
ovn.kubernetes.io/ip_pool: 10.16.0.15,fd00:10:16::15;10.16.0.16,fd00:10:16::18;10.16.0.17,fd00:10:16::17
spec:
containers:
- name: backend
Expand Down

0 comments on commit aa45662

Please sign in to comment.