This commit is contained in:
@@ -0,0 +1,59 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: reverse-proxy-test
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: reverse-proxy-test
|
||||||
|
namespace: reverse-proxy-test
|
||||||
|
annotations:
|
||||||
|
reloader.stakater.com/search: "true"
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: reverse-proxy-test
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: reverse-proxy-test
|
||||||
|
spec:
|
||||||
|
nodeName: kube-master
|
||||||
|
containers:
|
||||||
|
- image: nginx:alpine
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: reverse-proxy-test
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: rp-port-http
|
||||||
|
- containerPort: 443
|
||||||
|
name: rp-port-https
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 250m
|
||||||
|
memory: 250Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: reverse-proxy-test
|
||||||
|
namespace: reverse-proxy-test
|
||||||
|
spec:
|
||||||
|
externalTrafficPolicy: Local
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: rp-port-http
|
||||||
|
protocol: TCP
|
||||||
|
nodePort: 30080
|
||||||
|
- name: https
|
||||||
|
port: 443
|
||||||
|
targetPort: rp-port-https
|
||||||
|
protocol: TCP
|
||||||
|
nodePort: 30443
|
||||||
|
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: reverse-proxy-test
|
||||||
Reference in New Issue
Block a user