generated from nginx/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path1.nginx-nim.yaml
88 lines (84 loc) · 2.01 KB
/
1.nginx-nim.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-nim2
labels:
app: nginx-nim2
spec:
selector:
matchLabels:
app: nginx-nim2
replicas: 1
template:
metadata:
labels:
app: nginx-nim2
spec:
containers:
- name: nginx-nim2
image: your.registry.tld/nginx-nim2:tag
ports:
- name: https
containerPort: 443
- name: f5tt
containerPort: 5000
env:
### NGINX Instance Manager environment
- name: NIM_USERNAME
value: admin
- name: NIM_PASSWORD
value: nimadmin
- name: NIM_LICENSE
value: "<BASE64_ENCODED_LICENSE_FILE>"
- name: NIM_CLICKHOUSE_ADDRESS
value: clickhouse
- name: NIM_CLICKHOUSE_PORT
value: "9000"
### If username is not set to "default", the clickhouse-users ConfigMap in 0.clickhouse.yaml shall be updated accordingly
- name: NIM_CLICKHOUSE_USERNAME
value: "default"
### If password is not set to "NGINXr0cks", the clickhouse-users ConfigMap in 0.clickhouse.yaml shall be updated accordingly
- name: NIM_CLICKHOUSE_PASSWORD
value: "NGINXr0cks"
### Second Sight Push mode
- name: STATS_PUSH_ENABLE
value: "false"
- name: STATS_PUSH_MODE
value: CUSTOM
#value: NGINX_PUSH
- name: STATS_PUSH_URL
value: "http://192.168.1.5/callHome"
### Push interval in seconds
- name: STATS_PUSH_INTERVAL
value: "1800"
---
apiVersion: v1
kind: Service
metadata:
name: nginx-nim2
labels:
app: nginx-nim2
spec:
ports:
- name: https
port: 443
- name: f5tt
port: 5000
selector:
app: nginx-nim2
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: nginx-nim2-grpc
labels:
app: nginx-nim2
spec:
ports:
- name: grpc
port: 443
nodePort: 30443
selector:
app: nginx-nim2
type: NodePort