Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e90efbd016 | ||
|
|
b0378ffb40 | ||
|
|
5c2e7d0e33 |
@@ -8,3 +8,4 @@ resources:
|
||||
- ingress.yaml
|
||||
- deployment.yaml
|
||||
- servicemonitor.yaml
|
||||
- socks-proxy.yaml
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: furumi-socks-proxy
|
||||
labels:
|
||||
app: furumi-socks-proxy
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: furumi-socks-proxy
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: furumi-socks-proxy
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: ai.tail2fe2d.ts.net
|
||||
tolerations:
|
||||
- key: workload
|
||||
operator: Equal
|
||||
value: ai
|
||||
effect: NoSchedule
|
||||
containers:
|
||||
- name: socks-proxy
|
||||
image: serjs/go-socks5-proxy:v0.0.4
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: REQUIRE_AUTH
|
||||
value: "true"
|
||||
- name: PROXY_USER
|
||||
value: furumi
|
||||
- name: PROXY_PASSWORD
|
||||
value: furumi
|
||||
- name: PROXY_PORT
|
||||
value: "1080"
|
||||
ports:
|
||||
- name: socks5
|
||||
containerPort: 1080
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: socks5
|
||||
initialDelaySeconds: 2
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: socks5
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 3
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 16Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 64Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
securityContext:
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: furumi-socks-proxy
|
||||
labels:
|
||||
app: furumi-socks-proxy
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: furumi-socks-proxy
|
||||
ports:
|
||||
- name: socks5
|
||||
protocol: TCP
|
||||
port: 1080
|
||||
targetPort: socks5
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: furumi-socks-proxy-ingress
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: furumi-socks-proxy
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app: furumi-player
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 1080
|
||||
@@ -18,7 +18,7 @@ spec:
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||
# kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
|
||||
@@ -75,6 +75,10 @@ prometheus:
|
||||
static_configs:
|
||||
- targets: ['prom-a2s-exporter.counter-strike.svc:9841']
|
||||
labels: {instance: master}
|
||||
- job_name: macos_prom_exporter
|
||||
static_configs:
|
||||
- targets: ['macbook-pro.tail2fe2d.ts.net:9100']
|
||||
labels: {instance: ultrabook-pro}
|
||||
|
||||
retention: "380d"
|
||||
retentionSize: "0"
|
||||
|
||||
Reference in New Issue
Block a user