mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
20 lines
352 B
YAML
20 lines
352 B
YAML
|
|
apiVersion: v1
|
||
|
|
kind: ReplicationController
|
||
|
|
metadata:
|
||
|
|
name: nginx-controller
|
||
|
|
namespace: poddemo
|
||
|
|
spec:
|
||
|
|
replicas: 2
|
||
|
|
selector:
|
||
|
|
role: load-balancer
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
role: load-balancer
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: nginx
|
||
|
|
image: coreos/nginx
|
||
|
|
ports:
|
||
|
|
- containerPort: 80
|