| @ -1,15 +1,7 @@ | |||||
| kubectl create namespace postgres | |||||
| kubectl create -f pv-local-pg.yaml | kubectl create -f pv-local-pg.yaml | ||||
| kubectl create -f pvc-pg.yaml | kubectl create -f pvc-pg.yaml | ||||
| kubectl create -f postgres-configmap.yaml | kubectl create -f postgres-configmap.yaml | ||||
| kubectl create -f postgres-deployment.yaml | kubectl create -f postgres-deployment.yaml | ||||
| kubectl create -f postgres-service.yaml | kubectl create -f postgres-service.yaml | ||||
| # 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 | |||||
| kubectl create -f pv-local-phppgadmin.yaml | |||||
| kubectl create -f phppgadmin-deployment.yaml | |||||
| watch kubectl get all -n postgres | watch kubectl get all -n postgres | ||||
| @ -0,0 +1,7 @@ | |||||
| # instruciones para levantar el registry | |||||
| https://gcore.com/learning/4-easy-steps-to-set-up-a-private-docker-registry-on-ubuntu/ | |||||
| # instrucciones para crear el Secret y usarlo en los pods | |||||
| https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | |||||
| @ -0,0 +1,5 @@ | |||||
| kubectl create -f pv-local-registry.yaml | |||||
| kubectl create -f registry-claim0-persistentvolumeclaim.yaml | |||||
| kubectl create -f registry-claim1-persistentvolumeclaim.yaml | |||||
| kubectl create -f registry-deployment.yaml | |||||
| kubectl create -f registry-service.yaml | |||||
| @ -0,0 +1 @@ | |||||
| kubectl get secret myregistrykey --output="jsonpath={.data.\.dockerconfigjson}" | base64 --decode | |||||
| @ -0,0 +1,5 @@ | |||||
| kubectl delete -f registry-service.yaml | |||||
| kubectl delete -f registry-deployment.yaml | |||||
| kubectl delete -f registry-claim1-persistentvolumeclaim.yaml | |||||
| kubectl delete -f registry-claim0-persistentvolumeclaim.yaml | |||||
| kubectl delete -f pv-local-registry.yaml | |||||
| @ -0,0 +1,28 @@ | |||||
| apiVersion: v1 | |||||
| kind: PersistentVolume | |||||
| metadata: | |||||
| name: mypdr-main-folder | |||||
| labels: | |||||
| app: mypdr | |||||
| spec: | |||||
| capacity: | |||||
| storage: 100Mi | |||||
| accessModes: | |||||
| - ReadWriteOnce | |||||
| hostPath: | |||||
| path: "/mnt/Externo/mypdr/main" | |||||
| --- | |||||
| apiVersion: v1 | |||||
| kind: PersistentVolume | |||||
| metadata: | |||||
| name: mypdr-a2auth-folder | |||||
| labels: | |||||
| app: mypdr | |||||
| spec: | |||||
| capacity: | |||||
| storage: 10Mi | |||||
| accessModes: | |||||
| - ReadWriteOnce | |||||
| hostPath: | |||||
| path: "/mnt/Externo/mypdr/a2auth" | |||||
| @ -0,0 +1,8 @@ | |||||
| apiVersion: v1 | |||||
| kind: Secret | |||||
| metadata: | |||||
| name: myregistrykey | |||||
| # namespace: awesomeapps | |||||
| data: | |||||
| .dockerconfigjson: ewoJImF1dGhzIjogewoJCSJyZWdpc3RyeS5yZXltb3RhLmVzIjogewoJCQkiYXV0aCI6ICJZM0psZVd4dmNHVjZPbEpsZVMweE1UYzIiCgkJfQoJfQp9 | |||||
| type: kubernetes.io/dockerconfigjson | |||||
| @ -0,0 +1,14 @@ | |||||
| apiVersion: v1 | |||||
| kind: PersistentVolumeClaim | |||||
| metadata: | |||||
| creationTimestamp: null | |||||
| labels: | |||||
| io.kompose.service: registry-claim0 | |||||
| name: registry-claim0 | |||||
| spec: | |||||
| accessModes: | |||||
| - ReadWriteOnce | |||||
| resources: | |||||
| requests: | |||||
| storage: 100Mi | |||||
| status: {} | |||||
| @ -0,0 +1,14 @@ | |||||
| apiVersion: v1 | |||||
| kind: PersistentVolumeClaim | |||||
| metadata: | |||||
| creationTimestamp: null | |||||
| labels: | |||||
| io.kompose.service: registry-claim1 | |||||
| name: registry-claim1 | |||||
| spec: | |||||
| accessModes: | |||||
| - ReadWriteOnce | |||||
| resources: | |||||
| requests: | |||||
| storage: 10Mi | |||||
| status: {} | |||||
| @ -0,0 +1,59 @@ | |||||
| apiVersion: apps/v1 | |||||
| kind: Deployment | |||||
| metadata: | |||||
| annotations: | |||||
| kompose.cmd: kompose convert | |||||
| kompose.version: 1.26.0 (40646f47) | |||||
| creationTimestamp: null | |||||
| labels: | |||||
| io.kompose.service: registry | |||||
| name: registry | |||||
| spec: | |||||
| replicas: 1 | |||||
| selector: | |||||
| matchLabels: | |||||
| io.kompose.service: registry | |||||
| strategy: | |||||
| type: Recreate | |||||
| template: | |||||
| metadata: | |||||
| annotations: | |||||
| kompose.cmd: kompose convert | |||||
| kompose.version: 1.26.0 (40646f47) | |||||
| creationTimestamp: null | |||||
| labels: | |||||
| io.kompose.service: registry | |||||
| spec: | |||||
| containers: | |||||
| - env: | |||||
| - name: REGISTRY_AUTH | |||||
| value: htpasswd | |||||
| - name: REGISTRY_AUTH_HTPASSWD_PATH | |||||
| value: /a2auth/registry.password | |||||
| - name: REGISTRY_AUTH_HTPASSWD_REALM | |||||
| value: Registry | |||||
| - name: REGISTRY_HTTP_SECRET | |||||
| value: SomeRandomStringToUse | |||||
| - name: REGISTRY_STORAGE_DELETE_ENABLED | |||||
| value: ‘true’ | |||||
| - name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY | |||||
| value: /main | |||||
| image: registry:2 | |||||
| name: registry | |||||
| ports: | |||||
| - containerPort: 5000 | |||||
| resources: {} | |||||
| volumeMounts: | |||||
| - mountPath: /main | |||||
| name: registry-claim0 | |||||
| - mountPath: /a2auth | |||||
| name: registry-claim1 | |||||
| restartPolicy: Always | |||||
| volumes: | |||||
| - name: registry-claim0 | |||||
| persistentVolumeClaim: | |||||
| claimName: registry-claim0 | |||||
| - name: registry-claim1 | |||||
| persistentVolumeClaim: | |||||
| claimName: registry-claim1 | |||||
| status: {} | |||||
| @ -0,0 +1,21 @@ | |||||
| apiVersion: v1 | |||||
| kind: Service | |||||
| metadata: | |||||
| annotations: | |||||
| kompose.cmd: kompose convert | |||||
| kompose.version: 1.26.0 (40646f47) | |||||
| creationTimestamp: null | |||||
| labels: | |||||
| io.kompose.service: registry | |||||
| name: registry | |||||
| spec: | |||||
| type: NodePort | |||||
| ports: | |||||
| - name: "5010" | |||||
| port: 5010 | |||||
| nodePort: 30342 | |||||
| targetPort: 5000 | |||||
| selector: | |||||
| io.kompose.service: registry | |||||
| status: | |||||
| loadBalancer: {} | |||||
| @ -0,0 +1 @@ | |||||
| creylopez:$2y$05$WhvZdhVr.Xwz.j/M61fMTu2ea8yAf5bPjPvQadT12kuzZaJw2Gwri | |||||