Your commit message
This commit is contained in:
12
部署应用/Oracle-Cloud/kms激活服务器/buildVLMCSD.dockerfile
Normal file
12
部署应用/Oracle-Cloud/kms激活服务器/buildVLMCSD.dockerfile
Normal 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" ]
|
||||
3
部署应用/Oracle-Cloud/kms激活服务器/vlmcsd-docker-run.sh
Normal file
3
部署应用/Oracle-Cloud/kms激活服务器/vlmcsd-docker-run.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker run -d --restart=always -p 21000:1688 --name=vlmcsd icederce/vmlcsd:2023-05-15
|
||||
72
部署应用/Oracle-Cloud/kms激活服务器/vlmcsd-docker.yaml
Normal file
72
部署应用/Oracle-Cloud/kms激活服务器/vlmcsd-docker.yaml
Normal 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
|
||||
Reference in New Issue
Block a user