-
Notifications
You must be signed in to change notification settings - Fork 3
/
1.f5tt.yaml
164 lines (149 loc) · 4.22 KB
/
1.f5tt.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
apiVersion: apps/v1
kind: Deployment
metadata:
name: f5tt
namespace: f5tt
labels:
app: f5tt
spec:
selector:
matchLabels:
app: f5tt
replicas: 1
template:
metadata:
labels:
app: f5tt
spec:
containers:
- name: f5tt
image: fiorucci/f5-telemetry-tracker:latest
ports:
- containerPort: 5000
env:
### Optional listen address and port
#- name: F5TT_ADDRESS
# value: 0.0.0.0
#- name: F5TT_PORT
# value: 5000
### Optional HTTP(S) Proxy
#- name: HTTP_PROXY
# value: "http(s)://username:password@proxy_ip:port"
#- name: HTTPS_PROXY
# value: "http(s)://username:password@proxy_ip:port"
### Optional NIST NVD CVE tracking REST API key (https://nvd.nist.gov/developers/request-an-api-key)
#- name: NIST_API_KEY
# value: xxxxxxxxxxxx
### REST API mode
# Example for NGINX Instance Manager 2.x
#- name: DATAPLANE_TYPE
# value: NGINX_MANAGEMENT_SYSTEM
#- name: DATAPLANE_FQDN
# value: "https://nim.ff.lan"
#- name: DATAPLANE_USERNAME
# value: "username@domain"
#- name: DATAPLANE_PASSWORD
# value: "thepassword"
#- name: NMS_AUTH_TYPE
# # "basic", "digest", "jwt". "basic" is the default
# value: "basic"
#- name: NMS_AUTH_TOKEN
# value: "JWT_TOKEN_HERE"
#- name: NMS_CH_HOST
# value: "nim.ff.lan"
#- name: NMS_CH_PORT
# value: "9000"
#- name: NMS_CH_USER
# value: "default"
#- name: NMS_CH_PASS
# value: ""
#- name: NMS_CH_SAMPLE_INTERVAL
# value: "1800"
# Example for BIG-IQ
#- name: DATAPLANE_TYPE
# value: BIG_IQ
#- name: DATAPLANE_FQDN
# value: "https://bigiq"
#- name: DATAPLANE_USERNAME
# value: "admin"
#- name: DATAPLANE_PASSWORD
# value: "admin"
### Push mode - push interval in seconds
#- name: STATS_PUSH_ENABLE
# value: "true"
#- name: STATS_PUSH_MODE
# value: PUSHGATEWAY
#- name: STATS_PUSH_URL
# value: "http://pushgateway.nginx.ff.lan"
#- name: STATS_PUSH_INTERVAL
# value: "10"
# Optional parameters for Basic Auth
#- name: STATS_PUSH_USERNAME
# value: "authusername"
#- name: STATS_PUSH_PASSWORD
# value: "authpassword"
### Automated e-mail reporting
# EMAIL_ENABLED is mandatory
#- name: EMAIL_ENABLED
# value: "false"
#- name: EMAIL_INTERVAL
# EMAIL_INTERVAL specified in minutes
# value: "5"
#- name: EMAIL_SERVER
# value: "smtp.mydomain.tld"
#- name: EMAIL_SERVER_PORT
# value: "25"
#- name: EMAIL_SERVER_TYPE
# Value can be starttls, ssl, plaintext
# value: "starttls"
# Optional username/password for SMTP authentication
#- name: EMAIL_AUTH_USER
# value: "[email protected]"
#- name: EMAIL_AUTH_PASS
# value: "thepassword"
# Reporting email sender and recipient
#- name: EMAIL_SENDER
# value: "[email protected]"
#- name: EMAIL_RECIPIENT
# value: "[email protected]"
---
apiVersion: v1
kind: Service
metadata:
name: f5tt
namespace: f5tt
labels:
app: f5tt
spec:
ports:
- name: http
port: 5000
selector:
app: f5tt
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: f5tt
namespace: f5tt
annotations:
nginx.org/proxy-connect-timeout: "30s"
nginx.org/proxy-read-timeout: "20s"
nginx.org/client-max-body-size: "4m"
nginx.com/health-checks: "true"
labels:
app: f5tt
spec:
ingressClassName: nginx
rules:
- host: f5tt.ff.lan
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: f5tt
port:
number: 5000