implement huly
This commit is contained in:
35
deploy/huly/stats/stats-deployment.yaml
Normal file
35
deploy/huly/stats/stats-deployment.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: stats
|
||||
name: stats
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: stats
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: stats
|
||||
spec:
|
||||
containers:
|
||||
- image: hardcoreeng/stats:v0.6.471
|
||||
name: stats
|
||||
env:
|
||||
- name: PORT
|
||||
value: "4900"
|
||||
- name: SERVER_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: huly-secret
|
||||
key: SERVER_SECRET
|
||||
ports:
|
||||
- containerPort: 4900
|
||||
hostPort: 4900
|
||||
protocol: TCP
|
||||
resources:
|
||||
limits:
|
||||
memory: "500M"
|
||||
restartPolicy: Always
|
22
deploy/huly/stats/stats-ingress.yaml
Normal file
22
deploy/huly/stats/stats-ingress.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
labels:
|
||||
app: stats
|
||||
name: stats
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: stats.huly.panic.haus
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: stats
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
12
deploy/huly/stats/stats-service.yaml
Normal file
12
deploy/huly/stats/stats-service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: stats
|
||||
name: stats
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 4900
|
||||
selector:
|
||||
app: stats
|
Reference in New Issue
Block a user