woot
This commit is contained in:
parent
5ee121586a
commit
b60fecde22
5 changed files with 92 additions and 30 deletions
|
|
@ -17,6 +17,9 @@ spec:
|
||||||
- name: ip
|
- name: ip
|
||||||
image: gmcintire/ip:main
|
image: gmcintire/ip:main
|
||||||
ports:
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 4000
|
||||||
|
protocol: TCP
|
||||||
- name: epmd
|
- name: epmd
|
||||||
containerPort: 4369
|
containerPort: 4369
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
kubernetes.io/ingress.class: traefik
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd
|
# traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: ip.vntx.net
|
- host: ip.vntx.net
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,29 @@
|
||||||
## More detailed template
|
## More detailed template
|
||||||
apiVersion: networking.k8s.io/v1
|
# apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
# kind: Ingress
|
||||||
metadata:
|
# metadata:
|
||||||
name: ip-deployment
|
# name: ip-deployment
|
||||||
namespace: ip
|
# namespace: ip
|
||||||
labels:
|
# labels:
|
||||||
app.kubernetes.io/name: ip-deployment
|
# app.kubernetes.io/name: ip-deployment
|
||||||
app.kubernetes.io/instance: ip-deployment
|
# app.kubernetes.io/instance: ip-deployment
|
||||||
app.kubernetes.io/version: "1"
|
# app.kubernetes.io/version: "1"
|
||||||
annotations:
|
# annotations:
|
||||||
kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
# cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
spec:
|
# spec:
|
||||||
tls:
|
# tls:
|
||||||
- hosts:
|
# - hosts:
|
||||||
- ip.vntx.net
|
# - ip.vntx.net
|
||||||
secretName: ip-deployment-ingress-secret
|
# secretName: ip-deployment-ingress-secret
|
||||||
rules:
|
# rules:
|
||||||
- host: ip.vntx.net
|
# - host: ip.vntx.net
|
||||||
http:
|
# http:
|
||||||
paths:
|
# paths:
|
||||||
- path: /
|
# - path: /
|
||||||
pathType: Prefix
|
# pathType: Prefix
|
||||||
backend:
|
# backend:
|
||||||
service:
|
# service:
|
||||||
name: ip-service
|
# name: ip-service
|
||||||
port:
|
# port:
|
||||||
number: 4000
|
# number: 4000
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ spec:
|
||||||
app: ip
|
app: ip
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- name: https
|
- name: http
|
||||||
port: 4000
|
port: 4000
|
||||||
targetPort: 4000
|
targetPort: 4000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
|
||||||
59
clusters/k3s/technitium-localstorage.yaml
Normal file
59
clusters/k3s/technitium-localstorage.yaml
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: technitium
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: technitium
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: technitium
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: technitium
|
||||||
|
image: technitium/dns-server:11.1.1
|
||||||
|
volumeMounts:
|
||||||
|
- name: technitium-volume
|
||||||
|
mountPath: /etc/dns
|
||||||
|
volumes:
|
||||||
|
- name: technitium-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: technitium-pvc
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: technitium-pvc
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: local-path
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: technitium-loadbalancer
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: technitium-udp
|
||||||
|
port: 53
|
||||||
|
targetPort: 53
|
||||||
|
protocol: UDP
|
||||||
|
- name: technitium-tcp
|
||||||
|
port: 53
|
||||||
|
targetPort: 53
|
||||||
|
protocol: TCP
|
||||||
|
- name: technitium-http
|
||||||
|
port: 5380
|
||||||
|
targetPort: 5380
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
app: technitium
|
||||||
|
type: LoadBalancer
|
||||||
Loading…
Add table
Reference in a new issue