Created
October 29, 2018 10:28
-
-
Save nphmuller/41eb9593bdb9e671375eda5ca077c230 to your computer and use it in GitHub Desktop.
nginx-ingress-internal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: nginx-configuration-internal | |
namespace: infra | |
labels: | |
app: nginx-ingress | |
tier: internal | |
--- | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: tcp-services-internal | |
namespace: infra | |
labels: | |
app: nginx-ingress | |
tier: internal | |
--- | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: udp-services-internal | |
namespace: infra | |
labels: | |
app: nginx-ingress | |
tier: internal | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-ingress-controller-internal | |
namespace: infra | |
labels: | |
app: nginx-ingress | |
tier: internal | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: nginx-ingress | |
tier: internal | |
template: | |
metadata: | |
labels: | |
app: nginx-ingress | |
tier: internal | |
annotations: | |
prometheus.io/port: '10254' | |
prometheus.io/scrape: 'true' | |
spec: | |
containers: | |
- name: nginx-ingress-controller-internal | |
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.19.0 | |
args: | |
- /nginx-ingress-controller | |
- --default-backend-service=$(POD_NAMESPACE)/default-http-backend | |
- --configmap=$(POD_NAMESPACE)/nginx-configuration-internal | |
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services-internal | |
- --udp-services-configmap=$(POD_NAMESPACE)/udp-services-internal | |
- --publish-service=$(POD_NAMESPACE)/nginx-ingress-internal | |
- --annotations-prefix=nginx.ingress.kubernetes.io | |
- --election-id=ingress-controller-leader-internal | |
- --ingress-class=nginx-internal | |
env: | |
- name: POD_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.name | |
- name: POD_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
ports: | |
- name: http | |
containerPort: 80 | |
- name: https | |
containerPort: 443 | |
livenessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /healthz | |
port: 10254 | |
scheme: HTTP | |
initialDelaySeconds: 10 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 1 | |
readinessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /healthz | |
port: 10254 | |
scheme: HTTP | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 1 | |
securityContext: | |
runAsNonRoot: false | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: nginx-ingress-internal | |
namespace: infra | |
labels: | |
app: nginx-ingress | |
tier: internal | |
annotations: | |
service.beta.kubernetes.io/azure-load-balancer-internal: "true" | |
spec: | |
externalTrafficPolicy: Local | |
type: LoadBalancer | |
selector: | |
app: nginx-ingress | |
tier: internal | |
ports: | |
- name: http | |
port: 80 | |
targetPort: http | |
- name: https | |
port: 443 | |
targetPort: https |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment