Your commit message

This commit is contained in:
zeaslity
2024-11-27 10:33:20 +08:00
commit 080c7bb97f
911 changed files with 168439 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
FROM alpine:latest as builder
WORKDIR /root
RUN apk add --no-cache git make build-base && \
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \
cd vlmcsd/ && \
make
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
EXPOSE 1688/tcp
CMD [ "/usr/bin/vlmcsd", "-D", "-d" ]

View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker run -d --restart=always -p 21000:1688 --name=vlmcsd icederce/vmlcsd:2023-05-15

View File

@@ -0,0 +1,72 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kms-vlmcsd-ingress
annotations:
cert-manager.io/cluster-issuer: cm-cloudflare-7421
spec:
ingressClassName: traefik
rules:
- host: kms.k3s.ig.107421.xyz
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: vlmcsd-svc
port:
number: 1688
tls:
- hosts:
- kms.k3s.ig.107421.xyz
secretName: kms.k3s.ig.107421.xyz-tls
---
kind: Service
apiVersion: v1
metadata:
name: vlmcsd-svc
namespace: default
spec:
selector:
app: vlmcsd-2021-11-19
type: NodePort
ports:
- port: 1688
targetPort: 1688
nodePort: 21000
name: http
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: vlmcsd-2021-11-19
namespace: default
spec:
selector:
matchLabels:
app: vlmcsd-2021-11-19
replicas: 1
template:
metadata:
labels:
app: vlmcsd-2021-11-19
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node-tokyo-2
containers:
- name: vlmcsd
image: icederce/vmlcsd:2021-11-19
imagePullPolicy: IfNotPresent
ports:
- containerPort: 1688
name: http