Created
November 17, 2017 19:05
-
-
Save kostyrev/f633ce6f9e0c5e4576c5417b3093d681 to your computer and use it in GitHub Desktop.
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
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx-echo-headers | |
labels: | |
app: nginx-echo-headers | |
spec: | |
type: ClusterIP | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
name: nginx-echo-headers | |
selector: | |
app: nginx-echo-headers | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nginx-echo-headers | |
labels: | |
app: nginx-echo-headers | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: nginx-echo-headers | |
spec: | |
containers: | |
- name: nginx-echo-headers | |
image: "brndnmtthws/nginx-echo-headers:latest" | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: nginx-echo-headers | |
labels: | |
app: nginx-echo-headers | |
annotations: | |
ingress.kubernetes.io/ssl-redirect: "false" | |
kubernetes.io/ingress.class: "nginx" | |
kubernetes.io/tls-acme: "true" | |
spec: | |
rules: | |
- host: nginx-echo-headers.k.example.com | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: nginx-echo-headers | |
servicePort: 80 | |
tls: | |
- hosts: | |
- nginx-echo-headers.k.example.com | |
secretName: nginx-echo-headers-tls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment