
The DaemonSet as it exists causes the pod to crash on startup with the following: Error syncing pod, skipping: failed to "StartContainer" for "nginx-ingress-lb" with RunContainerError: "runContainer: API error (500): Cannot start container 7eab41694a7d817665337724b5710bd17d7846f0212408aa9d6056e3211447a4: [8] System error: exec: \"/nginx-ingress-controller-lb\": stat /nginx-ingress-controller-lb: no such file or directory\n" Modifying the arguments to match the replication controller works.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: nginx-ingress-lb
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: nginx-ingress-lb
|
|
spec:
|
|
terminationGracePeriodSeconds: 60
|
|
containers:
|
|
- image: gcr.io/google_containers/nginx-ingress-controller:0.5
|
|
name: nginx-ingress-lb
|
|
imagePullPolicy: Always
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 10249
|
|
scheme: HTTP
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 5
|
|
# use downward API
|
|
env:
|
|
- name: POD_IP
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIP
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
ports:
|
|
- containerPort: 80
|
|
hostPort: 80
|
|
- containerPort: 443
|
|
hostPort: 4444
|
|
args:
|
|
- /nginx-ingress-controller
|
|
- --default-backend-service=default/default-http-backend
|