up
This commit is contained in:
parent
235b50c492
commit
fe37517129
8 changed files with 59 additions and 8 deletions
.vscode
ingress-system
minecraft
node-feature-discovery
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"yaml.schemas": {
|
"yaml.schemas": {
|
||||||
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook": "file:///home/royalcat/projects/cloud-cluster/.ansible/cluster.yaml",
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/playbook": "file:///home/royalcat/projects/cloud-cluster/.ansible/cluster.yaml",
|
||||||
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json": "file:///home/royalcat/projects/cloud-cluster/.ansible/inventory.yaml"
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json": "file:///home/royalcat/projects/cloud-cluster/.ansible/inventory.yaml",
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,4 +4,4 @@ metadata:
|
||||||
name: cloudflare-api-token
|
name: cloudflare-api-token
|
||||||
namespace: ingress-system
|
namespace: ingress-system
|
||||||
stringData:
|
stringData:
|
||||||
token: 9gCqm5J98tBKKZlcH5oUvQ5GmNKAxtSoRa5TfWea
|
apiToken: 9gCqm5J98tBKKZlcH5oUvQ5GmNKAxtSoRa5TfWea
|
||||||
|
|
38
ingress-system/external-dns-service-account.yaml
Normal file
38
ingress-system/external-dns-service-account.yaml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: external-dns
|
||||||
|
namespace: ingress-system
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: external-dns
|
||||||
|
namespace: ingress-system
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["services", "endpoints", "pods"]
|
||||||
|
verbs: ["get", "watch", "list"]
|
||||||
|
- apiGroups: ["extensions", "networking.k8s.io"]
|
||||||
|
resources: ["ingresses"]
|
||||||
|
verbs: ["get", "watch", "list"]
|
||||||
|
- apiGroups: ["externaldns.k8s.io"]
|
||||||
|
resources: ["dnsendpoints"]
|
||||||
|
verbs: ["get", "watch", "list"]
|
||||||
|
- apiGroups: ["externaldns.k8s.io"]
|
||||||
|
resources: ["dnsendpoints/status"]
|
||||||
|
verbs: ["update"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: external-dns-viewer
|
||||||
|
namespace: ingress-system
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: external-dns
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: external-dns
|
||||||
|
namespace: ingress-system
|
|
@ -14,9 +14,20 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: external-dns
|
app.kubernetes.io/name: external-dns
|
||||||
spec:
|
spec:
|
||||||
|
serviceAccountName: external-dns
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: topology.kubernetes.io/region
|
||||||
|
operator: NotIn
|
||||||
|
values:
|
||||||
|
- russia-west
|
||||||
|
- russia-east
|
||||||
containers:
|
containers:
|
||||||
- name: external-dns
|
- name: external-dns
|
||||||
image: registry.k8s.io/external-dns/external-dns:v0.15.1
|
image: registry.k8s.io/external-dns/external-dns:v0.16.1
|
||||||
args:
|
args:
|
||||||
- --source=crd
|
- --source=crd
|
||||||
- --provider=cloudflare
|
- --provider=cloudflare
|
||||||
|
|
|
@ -124,7 +124,7 @@ metadata:
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: mc-shutdown
|
name: mc-shutdown
|
||||||
namespace: default
|
namespace: minecraft
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: mc-shutdown
|
name: mc-shutdown
|
||||||
|
@ -142,7 +142,7 @@ metadata:
|
||||||
name: mc-shutdown
|
name: mc-shutdown
|
||||||
namespace: minecraft
|
namespace: minecraft
|
||||||
spec:
|
spec:
|
||||||
schedule: "*/30 * * * *"
|
schedule: "*/5 * * * *"
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -6,7 +6,6 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: prominence-2-rpg
|
app.kubernetes.io/name: prominence-2-rpg
|
||||||
annotations:
|
annotations:
|
||||||
mc-router.itzg.me/defaultServer: "true"
|
|
||||||
mc-router.itzg.me/externalServerName: "prominence-2-rpg.mc.konfa.ch"
|
mc-router.itzg.me/externalServerName: "prominence-2-rpg.mc.konfa.ch"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
|
|
|
@ -6,7 +6,6 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: tfg
|
app.kubernetes.io/name: tfg
|
||||||
annotations:
|
annotations:
|
||||||
mc-router.itzg.me/defaultServer: "true"
|
|
||||||
mc-router.itzg.me/externalServerName: "tfg.mc.konfa.ch"
|
mc-router.itzg.me/externalServerName: "tfg.mc.konfa.ch"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
|
@ -26,7 +25,7 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: tfg
|
app.kubernetes.io/name: tfg
|
||||||
ports:
|
ports:
|
||||||
- name: "25565"
|
- name: "minecraft"
|
||||||
port: 25565
|
port: 25565
|
||||||
targetPort: 25565
|
targetPort: 25565
|
||||||
nodePort: 32565
|
nodePort: 32565
|
||||||
|
|
4
node-feature-discovery/00-namespace.yaml
Normal file
4
node-feature-discovery/00-namespace.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: node-feature-discovery
|
Loading…
Reference in a new issue