added istio ingress proxy
This commit is contained in:
parent
7dd7d19df5
commit
0659c44499
18 changed files with 415 additions and 51 deletions
51
config/istio/deployment.yaml
Normal file
51
config/istio/deployment.yaml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ingress-proxy
|
||||
namespace: istio-system
|
||||
labels:
|
||||
app: ingress-proxy
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ingress-proxy
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ingress-proxy
|
||||
spec:
|
||||
serviceAccountName: ingress-proxy
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: MASTERNODE
|
||||
tolerations:
|
||||
- operator: Exists
|
||||
effect: NoSchedule
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx@sha256:2911ad2d54f4cf4dc7ad21af122c1eefce16836a34be751c63351ca1fb452d57 # nginx:mainline-alpine
|
||||
volumeMounts:
|
||||
- name: ingress-proxy-config
|
||||
mountPath: /etc/nginx
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
add:
|
||||
- SETUID
|
||||
- SETGID
|
||||
- NET_BIND_SERVICE
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
hostPort: 80
|
||||
protocol: TCP
|
||||
- name: https
|
||||
containerPort: 443
|
||||
hostPort: 443
|
||||
protocol: TCP
|
||||
volumes:
|
||||
- name: ingress-proxy-config
|
||||
configMap:
|
||||
name: ingress-proxy-config
|
||||
Loading…
Add table
Add a link
Reference in a new issue