Skip to content

Commit

Permalink
Merge pull request #60 from eftechcombr/latest
Browse files Browse the repository at this point in the history
Sync from latest
  • Loading branch information
eduardofraga authored Apr 23, 2024
2 parents bd8467a + 4d1d0aa commit 82224af
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 16 deletions.
4 changes: 2 additions & 2 deletions kubernetes/glpi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
app: php-fpm
namespace: glpi
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: php-fpm
Expand Down Expand Up @@ -57,7 +57,7 @@ metadata:
app: nginx
namespace: glpi
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: nginx
Expand Down
15 changes: 9 additions & 6 deletions kubernetes/glpi-persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ metadata:
name: glpi-files
namespace: glpi
spec:
storageClassName: longhorn
# storageClassName: longhorn
accessModes:
- ReadWriteMany
# - ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 10Gi
Expand All @@ -19,9 +20,10 @@ metadata:
name: glpi-marketplace
namespace: glpi
spec:
storageClassName: longhorn
# storageClassName: longhorn
accessModes:
- ReadWriteMany
# - ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 2Gi
Expand All @@ -35,9 +37,10 @@ metadata:
name: glpi-etc
namespace: glpi
spec:
storageClassName: longhorn
# storageClassName: longhorn
accessModes:
- ReadWriteMany
# - ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 50Mi
Expand Down
8 changes: 8 additions & 0 deletions kubernetes/mariadb-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: mariadb-glpi-config
namespace: glpi
data:
MARIADB_HOST: "mariadb-headless.glpi.svc.cluster.local"
MARIADB_PORT: "3306"
9 changes: 6 additions & 3 deletions kubernetes/mariadb-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ spec:
imagePullPolicy: IfNotPresent
name: base
command:
- sh
- -c
- "mysql -h $MARIADB_HOST -u root -p$MARIADB_ROOT_PASSWORD -e \"GRANT SELECT ON \`mysql\`.\`time_zone_name\` TO 'glpi'@'%'; FLUSH PRIVILEGES; FLUSH PRIVILEGES;\""
- sh
- -c
- "mysql --host=${MARIADB_HOST} -u root -p${MARIADB_ROOT_PASSWORD} -e \"GRANT SELECT ON mysql.time_zone_name TO 'glpi'@'%'; FLUSH PRIVILEGES;\""
envFrom:
- secretRef:
name: mariadb-glpi-secret
- configMapRef:
name: mariadb-glpi-config

restartPolicy: Never
backoffLimit: 5
status: {}
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/mariadb-persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: mariadb-data
namespace: glpi
spec:
storageClassName: longhorn
# storageClassName: longhorn
accessModes:
- ReadWriteOnce
resources:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/mariadb-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: mariadb-glpi-secret
namespace: glpi
data:
MARIADB_ROOT_PASSWORD: bXktc2VjcmV0LXB3Cg==
MARIADB_ROOT_PASSWORD: Z2xwaQ==
MARIADB_DATABASE: Z2xwaQ==
MARIADB_USER: Z2xwaQ==
MARIADB_PASSWORD: Z2xwaQ==
Expand Down
4 changes: 1 addition & 3 deletions kubernetes/namespace.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
apiVersion: v1
kind: Namespace
metadata:
creationTimestamp: null
name: glpi
spec: {}
status: {}

0 comments on commit 82224af

Please sign in to comment.