2017-01-31 10:19:58 -08:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
2019-12-27 19:45:05 -03:00
|
|
|
name: nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
labels:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
spec:
|
|
|
|
|
type: NodePort
|
|
|
|
|
ports:
|
2018-09-25 16:18:27 -03:00
|
|
|
- port: 80
|
|
|
|
|
protocol: TCP
|
|
|
|
|
name: http
|
|
|
|
|
- port: 443
|
|
|
|
|
protocol: TCP
|
|
|
|
|
name: https
|
2017-01-31 10:19:58 -08:00
|
|
|
selector:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ReplicationController
|
|
|
|
|
metadata:
|
2017-11-12 00:34:40 -03:00
|
|
|
name: nginx
|
2018-09-04 11:25:30 +08:00
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
2018-09-04 11:25:30 +08:00
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2017-01-31 10:19:58 -08:00
|
|
|
spec:
|
|
|
|
|
containers:
|
2018-09-25 16:18:27 -03:00
|
|
|
- name: nginx
|
2022-07-24 21:30:57 +05:30
|
|
|
image: registry.k8s.io/ingress-nginx/nginx:c5766dc011965f22fac2f4437e86d0fd9960a50c@sha256:94ff9b435a5f3f4570bbdaed4a3a523f63a54ce2ad6b132b5640bae2af5d9d90
|
2018-09-25 16:18:27 -03:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 80
|
|
|
|
|
- containerPort: 443
|