2017-01-31 10:19:58 -08:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
2017-11-12 00:34:40 -03:00
|
|
|
name: nginxsvc
|
2017-01-31 10:19:58 -08:00
|
|
|
labels:
|
2017-11-12 00:34:40 -03:00
|
|
|
app: nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
spec:
|
|
|
|
|
type: NodePort
|
|
|
|
|
ports:
|
|
|
|
|
- port: 80
|
|
|
|
|
protocol: TCP
|
|
|
|
|
name: http
|
2017-11-12 00:34:40 -03:00
|
|
|
- port: 443
|
|
|
|
|
protocol: TCP
|
|
|
|
|
name: https
|
2017-01-31 10:19:58 -08:00
|
|
|
selector:
|
2017-11-12 00:34:40 -03:00
|
|
|
app: nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ReplicationController
|
|
|
|
|
metadata:
|
2017-11-12 00:34:40 -03:00
|
|
|
name: nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
2017-11-12 00:34:40 -03:00
|
|
|
app: nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2017-11-12 00:34:40 -03:00
|
|
|
app: nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
spec:
|
|
|
|
|
containers:
|
2017-11-12 00:34:40 -03:00
|
|
|
- name: nginx
|
2018-07-30 17:33:36 -04:00
|
|
|
image: quay.io/kubernetes-ingress-controller/nginx:0.56
|
2017-01-31 10:19:58 -08:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 80
|
2018-07-21 18:12:29 -04:00
|
|
|
- containerPort: 443
|