mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 14:49:44 +00:00
Move things to subfolders
This commit is contained in:
parent
027759ecf6
commit
1ad408129e
6 changed files with 63 additions and 68 deletions
|
|
@ -49,31 +49,3 @@ spec:
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/localtime
|
path: /etc/localtime
|
||||||
type: File
|
type: File
|
||||||
|
|
||||||
---
|
|
||||||
kind: Service
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: hass
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: hass
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: hass-http
|
|
||||||
name: http
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: hass
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: hass.shoup.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- backend:
|
|
||||||
serviceName: hass
|
|
||||||
servicePort: http
|
|
||||||
path: /
|
|
||||||
26
workloads/hass/service.yml
Normal file
26
workloads/hass/service.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: hass
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: hass
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: hass-http
|
||||||
|
name: http
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: hass
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: hass.shoup.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: hass
|
||||||
|
servicePort: http
|
||||||
|
path: /
|
||||||
18
workloads/nip-io/config.yml
Normal file
18
workloads/nip-io/config.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: nip-io
|
||||||
|
data:
|
||||||
|
backend.conf: |
|
||||||
|
[main]
|
||||||
|
domain=lcl.home.shoup.io
|
||||||
|
ttl=432000
|
||||||
|
ipaddress=127.0.0.1
|
||||||
|
[soa]
|
||||||
|
id=1
|
||||||
|
hostmaster=hostmaster@lcl.home.shoup.io
|
||||||
|
ns=ns1.lcl.home.shoup.io
|
||||||
|
[nameservers]
|
||||||
|
ns1.lcl.home.shoup.io=127.0.0.1
|
||||||
|
ns2.lcl.home.shoup.io=127.0.0.1
|
||||||
|
[blacklist]
|
||||||
|
|
@ -1,23 +1,3 @@
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: nip-io
|
|
||||||
data:
|
|
||||||
backend.conf: |
|
|
||||||
[main]
|
|
||||||
domain=lcl.home.shoup.io
|
|
||||||
ttl=432000
|
|
||||||
ipaddress=127.0.0.1
|
|
||||||
[soa]
|
|
||||||
id=1
|
|
||||||
hostmaster=hostmaster@lcl.home.shoup.io
|
|
||||||
ns=ns1.lcl.home.shoup.io
|
|
||||||
[nameservers]
|
|
||||||
ns1.lcl.home.shoup.io=127.0.0.1
|
|
||||||
ns2.lcl.home.shoup.io=127.0.0.1
|
|
||||||
[blacklist]
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -51,23 +31,3 @@ spec:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: nip-io
|
name: nip-io
|
||||||
---
|
|
||||||
kind: Service
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: nip-io
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
selector:
|
|
||||||
app: nip-io
|
|
||||||
ports:
|
|
||||||
- name: dns-tcp
|
|
||||||
protocol: TCP
|
|
||||||
port: 53
|
|
||||||
nodePort: 31053
|
|
||||||
targetPort: dns-tcp
|
|
||||||
- name: dns-udp
|
|
||||||
protocol: UDP
|
|
||||||
port: 53
|
|
||||||
nodePort: 31053
|
|
||||||
targetPort: dns-udp
|
|
||||||
19
workloads/nip-io/service.yml
Normal file
19
workloads/nip-io/service.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: nip-io
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: nip-io
|
||||||
|
ports:
|
||||||
|
- name: dns-tcp
|
||||||
|
protocol: TCP
|
||||||
|
port: 53
|
||||||
|
nodePort: 31053
|
||||||
|
targetPort: dns-tcp
|
||||||
|
- name: dns-udp
|
||||||
|
protocol: UDP
|
||||||
|
port: 53
|
||||||
|
nodePort: 31053
|
||||||
|
targetPort: dns-udp
|
||||||
Loading…
Add table
Reference in a new issue