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
|
||||
image: gmcintire/ip:main
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 4000
|
||||
protocol: TCP
|
||||
- name: epmd
|
||||
containerPort: 4369
|
||||
protocol: TCP
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ metadata:
|
|||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
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:
|
||||
rules:
|
||||
- host: ip.vntx.net
|
||||
|
|
|
|||
|
|
@ -1,29 +1,29 @@
|
|||
## More detailed template
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ip-deployment
|
||||
namespace: ip
|
||||
labels:
|
||||
app.kubernetes.io/name: ip-deployment
|
||||
app.kubernetes.io/instance: ip-deployment
|
||||
app.kubernetes.io/version: "1"
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- ip.vntx.net
|
||||
secretName: ip-deployment-ingress-secret
|
||||
rules:
|
||||
- host: ip.vntx.net
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: ip-service
|
||||
port:
|
||||
number: 4000
|
||||
# apiVersion: networking.k8s.io/v1
|
||||
# kind: Ingress
|
||||
# metadata:
|
||||
# name: ip-deployment
|
||||
# namespace: ip
|
||||
# labels:
|
||||
# app.kubernetes.io/name: ip-deployment
|
||||
# app.kubernetes.io/instance: ip-deployment
|
||||
# app.kubernetes.io/version: "1"
|
||||
# annotations:
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
# cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
# spec:
|
||||
# tls:
|
||||
# - hosts:
|
||||
# - ip.vntx.net
|
||||
# secretName: ip-deployment-ingress-secret
|
||||
# rules:
|
||||
# - host: ip.vntx.net
|
||||
# http:
|
||||
# paths:
|
||||
# - path: /
|
||||
# pathType: Prefix
|
||||
# backend:
|
||||
# service:
|
||||
# name: ip-service
|
||||
# port:
|
||||
# number: 4000
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ spec:
|
|||
app: ip
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: https
|
||||
- name: http
|
||||
port: 4000
|
||||
targetPort: 4000
|
||||
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