-
Notifications
You must be signed in to change notification settings - Fork 128
/
deployment-server.yml
101 lines (101 loc) · 2.62 KB
/
deployment-server.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -o deployment.yml
kompose.version: 1.20.0 ()
creationTimestamp: null
labels:
app: adslproxy-server
name: adslproxy-server
namespace: adslproxy
spec:
ports:
- name: "8425"
port: 8425
targetPort: 8425
selector:
app: adslproxy-server
status:
loadBalancer: {}
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -o deployment.yml
kompose.version: 1.20.0 ()
creationTimestamp: null
labels:
app: adslproxy-server
name: adslproxy-server
namespace: adslproxy
spec:
replicas: 1
strategy: {}
selector:
matchLabels:
app: adslproxy-server
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -o deployment.yml
kompose.version: 1.20.0 ()
creationTimestamp: null
labels:
app: adslproxy-server
spec:
containers:
- resources:
requests:
memory: "300Mi"
cpu: "0.2"
limits:
memory: "300Mi"
cpu: "0.2"
args:
- adslproxy
- serve
env:
- name: REDIS_HOST
valueFrom:
secretKeyRef:
name: redis
key: host
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis
key: password
image: germey/adslproxy
name: adslproxy-server
ports:
- containerPort: 8425
restartPolicy: Always
status: {}
kind: List
metadata: {}
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-adslproxy
namespace: adslproxy
annotations:
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: basic-auth
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required'
spec:
tls:
- hosts:
- adslproxy.cuiqingcai.com
secretName: tls-adslproxy-cuiqingcai-com
rules:
- host: adslproxy.cuiqingcai.com
http:
paths:
- backend:
serviceName: adslproxy-server
servicePort: 8425
path: /