58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
![]() |
apiVersion: v1
|
||
|
kind: ReplicationController
|
||
|
metadata:
|
||
|
name: nginx-ingress-controller
|
||
|
labels:
|
||
|
k8s-app: nginx-ingress-lb
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
k8s-app: nginx-ingress-lb
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
k8s-app: nginx-ingress-lb
|
||
|
name: nginx-ingress-lb
|
||
|
spec:
|
||
|
terminationGracePeriodSeconds: 60
|
||
|
containers:
|
||
|
- image: aledbf/nginx-third-party:0.15
|
||
|
name: nginx-ingress-lb
|
||
|
imagePullPolicy: Always
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /healthz
|
||
|
port: 10249
|
||
|
scheme: HTTP
|
||
|
initialDelaySeconds: 30
|
||
|
timeoutSeconds: 5
|
||
|
# use downward API
|
||
|
env:
|
||
|
- name: POD_NAME
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.name
|
||
|
- name: POD_NAMESPACE
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.namespace
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
hostPort: 80
|
||
|
- containerPort: 443
|
||
|
hostPort: 4430
|
||
|
args:
|
||
|
- /nginx-ingress-controller
|
||
|
- --default-backend-service=default/default-http-backend
|
||
|
volumeMounts:
|
||
|
- mountPath: /etc/nginx/template
|
||
|
name: nginx-template-volume
|
||
|
readOnly: true
|
||
|
volumes:
|
||
|
- name: nginx-template-volume
|
||
|
configMap:
|
||
|
name: nginx-template
|
||
|
items:
|
||
|
- key: nginx.tmpl
|
||
|
path: nginx.tmpl
|