Fixing bind9 config
cubox-m still doesn't respond to outside requests
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
fstab:
|
||||
gluster:
|
||||
#state can be present, mounted, absent, unmounted, remounted
|
||||
# - name: jenkins
|
||||
# path: "/var/lib/jenkins"
|
||||
# state: mounted
|
||||
@@ -11,7 +12,10 @@ fstab:
|
||||
state: present
|
||||
- name: vmshares
|
||||
path: "/opt/shared"
|
||||
state: present
|
||||
state: mounted
|
||||
# - name: mariadb
|
||||
# path: "/opt/mariadb"
|
||||
# state: mounted
|
||||
|
||||
helm:
|
||||
repos:
|
||||
|
||||
15
ansible-5/roles/prod.k3s/files/glusterfs/endpoint.yaml
Normal file
15
ansible-5/roles/prod.k3s/files/glusterfs/endpoint.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
#https://itnext.io/kubernetes-storage-part-2-glusterfs-complete-tutorial-77542c12a602
|
||||
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: glusterfs-cluster
|
||||
labels:
|
||||
storage.k8s.io/name: glusterfs
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 192.168.4.12
|
||||
hostname: home
|
||||
ports:
|
||||
- port: 1
|
||||
15
ansible-5/roles/prod.k3s/files/glusterfs/pvc.mysql.yaml
Normal file
15
ansible-5/roles/prod.k3s/files/glusterfs/pvc.mysql.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: glusterfs-mariadb-claim
|
||||
spec:
|
||||
storageClassName: "" # Empty string must be explicitly set otherwise default StorageClass will be set
|
||||
volumeName: glusterfs-mariadb
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadOnlyMany
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
21
ansible-5/roles/prod.k3s/files/glusterfs/volume.mysql.yaml
Normal file
21
ansible-5/roles/prod.k3s/files/glusterfs/volume.mysql.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: glusterfs-mariadb
|
||||
labels:
|
||||
storage.k8s.io/name: glusterfs
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadOnlyMany
|
||||
- ReadWriteMany
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
storageClassName: ""
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
volumeMode: Filesystem
|
||||
glusterfs:
|
||||
endpoints: glusterfs-cluster
|
||||
path: mariadb
|
||||
readOnly: no
|
||||
@@ -26,3 +26,6 @@ spec:
|
||||
- name: hello-world-volume
|
||||
configMap:
|
||||
name: hello-world
|
||||
- name: gluster-mariadb-volume
|
||||
hostPath:
|
||||
path: "/opt/mariadb"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
---
|
||||
|
||||
#TODO: create mount points?
|
||||
|
||||
- name: Create glusterfs fstab entries
|
||||
ansible.posix.mount:
|
||||
path: "{{item.path}}"
|
||||
|
||||
@@ -2,15 +2,17 @@
|
||||
# provisioning services in k3s cluster
|
||||
|
||||
# mount gluster
|
||||
#- include_tasks: gluster.fstab.yml
|
||||
- include_tasks: gluster.fstab.yml
|
||||
|
||||
# add helm repositories
|
||||
#- include_tasks: add_repos.yml
|
||||
- include_tasks: add_repos.yml
|
||||
|
||||
- include_tasks: cert_manager.yml
|
||||
|
||||
- include_tasks: hello-world.yaml
|
||||
|
||||
#- include_tasks: mariadb.yaml
|
||||
|
||||
# https://artifacthub.io/packages/helm/twuni/docker-registry
|
||||
#- name: Deploy latest version of docker-registry in dev-tools namespace
|
||||
# local_action:
|
||||
|
||||
4
ansible-5/roles/prod.k3s/tasks/mariadb.yaml
Normal file
4
ansible-5/roles/prod.k3s/tasks/mariadb.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
#https://github.com/bitnami/charts/tree/master/bitnami/mariadb
|
||||
|
||||
|
||||
Reference in New Issue
Block a user