basic proxy ip detection test tool
This commit is contained in:
commit
d3cff15545
15 changed files with 1075 additions and 0 deletions
69
k8s-deployment.yaml
Normal file
69
k8s-deployment.yaml
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: proxy-detection-api
|
||||
labels:
|
||||
app: proxy-detection-api
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: proxy-detection-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: proxy-detection-api
|
||||
spec:
|
||||
containers:
|
||||
- name: proxy-detection-api
|
||||
image: your-registry/proxy-detection-api:latest
|
||||
ports:
|
||||
- containerPort: 2424
|
||||
env:
|
||||
- name: PORT
|
||||
value: "2424"
|
||||
- name: HOST
|
||||
value: "0.0.0.0"
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
- name: TRUST_PROXY
|
||||
value: "true"
|
||||
- name: API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: proxy-detection-secret
|
||||
key: api-key
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 2424
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 2424
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: proxy-detection-service
|
||||
labels:
|
||||
app: proxy-detection-api
|
||||
spec:
|
||||
selector:
|
||||
app: proxy-detection-api
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 2424
|
||||
protocol: TCP
|
||||
type: ClusterIP
|
||||
Loading…
Add table
Add a link
Reference in a new issue