Browse Source

Delete MDM directory

main
creylopez 2 years ago
committed by GitHub
parent
commit
44f6fbe873
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 0 additions and 217 deletions
  1. +0
    -8
      MDM/creaTodo.sh
  2. +0
    -1
      MDM/entra.sh
  3. +0
    -6
      MDM/paraTodo.sh
  4. +0
    -23
      MDM/pgadmin-configmap.yaml
  5. +0
    -52
      MDM/pgadmin-deployment.yaml
  6. +0
    -8
      MDM/pgadmin-secret.yaml
  7. +0
    -14
      MDM/pgadmin-service.yaml
  8. +0
    -55
      MDM/pgadmin-statefulset.yaml
  9. +0
    -11
      MDM/pv-local-pgadmin-config.yaml
  10. +0
    -11
      MDM/pv-local-pgadmin.yaml
  11. +0
    -14
      MDM/pvc-pgadmin-config.yaml
  12. +0
    -14
      MDM/pvc-pgadmin.yaml

+ 0
- 8
MDM/creaTodo.sh View File

@ -1,8 +0,0 @@
# pgadmin
kubectl create -f pv-local-pgadmin.yaml
kubectl create -f pvc-pgadmin.yaml
kubectl create -f pgadmin-secret.yaml
kubectl create -f pgadmin-service.yaml
kubectl create -f pgadmin-deployment.yaml
kubectl create -f pgadmin-configmap.yaml
watch kubectl get all -n postgres

+ 0
- 1
MDM/entra.sh View File

@ -1 +0,0 @@
kubectl exec -ti deployment.apps/postgres -n postgres -- /bin/bash

+ 0
- 6
MDM/paraTodo.sh View File

@ -1,6 +0,0 @@
kubectl delete -f pgadmin-configmap.yaml
kubectl delete -f pgadmin-secret.yaml
kubectl delete -f pgadmin-service.yaml
kubectl delete -f pgadmin-deployment.yaml
kubectl delete -f pvc-pgadmin.yaml
kubectl delete -f pv-local-pgadmin.yaml

+ 0
- 23
MDM/pgadmin-configmap.yaml View File

@ -1,23 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: pgadmin-config
namespace: postgres
data:
servers.json: |
{
"Servers": {
"1": {
"Name": "PostgreSQL DB",
"Group": "Servers",
"Port": 5432,
"Username": "postgres",
"Host": "postgres",
"SSLMode": "prefer",
"MaintenanceDB": "postgres"
}
}
}
config_local.py: |
SECURITY_EMAIL_VALIDATOR_ARGS={"check_deliverability": False}

+ 0
- 52
MDM/pgadmin-deployment.yaml View File

@ -1,52 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pgadmin
namespace: postgres
spec:
replicas: 1
selector:
matchLabels:
app: pgadmin
template:
metadata:
labels:
app: pgadmin
spec:
initContainers:
- name: pgadmin-init
image: alpine
args: [ "sh", "-c", "chown 5050:5050 /var/lib/pgadmin " ]
volumeMounts:
- name: pgadmin-data
mountPath: /var/lib/pgadmin
containers:
- name: pgadmin
image: ubuntu
imagePullPolicy: Always
env:
- name: PGADMIN_DEFAULT_EMAIL
value: creylopez@yahoo.es
- name: PGADMIN_DEFAULT_PASSWORD
valueFrom:
secretKeyRef:
name: pgadmin
key: pgadmin-password
volumeMounts:
- name: pgadmin-config
mountPath: /pgadmin4/servers.json
subPath: servers.json
readOnly: true
- name: pgadmin-config
mountPath: /pgadmin4/config_local.py
subPath: config_local.py
readOnly: true
- name: pgadmin-data
mountPath: /var/lib/pgadmin
volumes:
- name: pgadmin-config
configMap:
name: pgadmin-config
- name: pgadmin-data
persistentVolumeClaim:
claimName: pgadmin-pv-claim

+ 0
- 8
MDM/pgadmin-secret.yaml View File

@ -1,8 +0,0 @@
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: pgadmin
namespace: postgres
data:
pgadmin-password: UmV5MTE3Ngo=

+ 0
- 14
MDM/pgadmin-service.yaml View File

@ -1,14 +0,0 @@
apiVersion: v1
kind: Service # Create service
metadata:
name: pgadmin # Sets the service name
namespace: postgres
labels:
app: pgadmin # Defines app to create service for
spec:
type: NodePort # Sets the service type
ports:
- port: 80 # Sets the port to run the postgres application
nodePort: 30200
selector:
app: pgadmin

+ 0
- 55
MDM/pgadmin-statefulset.yaml View File

@ -1,55 +0,0 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pgadmin
namespace: postgres
spec:
serviceName: pgadmin-service
podManagementPolicy: Parallel
replicas: 1
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: pgadmin
template:
metadata:
labels:
app: pgadmin
spec:
terminationGracePeriodSeconds: 10
containers:
- name: pgadmin
image: dpage/pgadmin4:5.4
imagePullPolicy: Always
env:
- name: PGADMIN_DEFAULT_EMAIL
value: celestino.rey@gmail.com
- name: PGADMIN_DEFAULT_PASSWORD
valueFrom:
secretKeyRef:
name: pgadmin
key: pgadmin-password
ports:
- name: http
containerPort: 80
protocol: TCP
volumeMounts:
- name: pgadmin-config
mountPath: /pgadmin4/servers.json
subPath: servers.json
readOnly: true
- name: pgadmin-data
mountPath: /var/lib/pgadmin
volumes:
- name: pgadmin-config
configMap:
name: pgadmin-config
volumeClaimTemplates:
- metadata:
name: pgadmin-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 3Gi

+ 0
- 11
MDM/pv-local-pgadmin-config.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: pgadmin-config
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/cluster/postgres/pgadmin-config"

+ 0
- 11
MDM/pv-local-pgadmin.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: pgadmin-data
spec:
capacity:
storage: 3Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/cluster/postgres/pgadmin"

+ 0
- 14
MDM/pvc-pgadmin-config.yaml View File

@ -1,14 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pgadmin-config-pv-claim
namespace: postgres
labels:
app: postgres
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 1Gi

+ 0
- 14
MDM/pvc-pgadmin.yaml View File

@ -1,14 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pgadmin-pv-claim
namespace: postgres
labels:
app: postgres
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 3Gi

Loading…
Cancel
Save