diff --git a/gobank-api-deployment.yaml b/gobank-api-deployment.yaml deleted file mode 100644 index 5472102..0000000 --- a/gobank-api-deployment.yaml +++ /dev/null @@ -1,73 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: gobank-api - labels: - app: gobank-api -spec: - replicas: 2 - selector: - matchLabels: - app: gobank-api - template: - metadata: - labels: - app: gobank-api - spec: - containers: - - name: gobank-api - image: ghcr.io/hypernaser/gobank:latest - ports: - - containerPort: 8080 - resources: - requests: - cpu: "100m" - memory: "64Mi" - limits: - cpu: "500m" - memory: "128Mi" - env: - - name: PGPASSWORD - valueFrom: - secretKeyRef: - name: db-creds - key: password - - name: PGUSER - valueFrom: - secretKeyRef: - name: db-creds - key: username - - name: DB_SOURCE - value: "postgres://gobank-db-rw:5432/gobank?sslmode=disable" ---- -# The Service (The Internal Load Balancer) -apiVersion: v1 -kind: Service -metadata: - name: gobank-api-service -spec: - selector: - app: gobank-api - ports: - - protocol: TCP - port: 80 - targetPort: 8080 ---- -# The Ingress (The External Load Balancer) -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: gobank-ingress - annotations: - traefik.ingress.kubernetes.io/router.entrypoints: web -spec: - rules: - - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: gobank-api-service - port: - number: 80 \ No newline at end of file diff --git a/postgres-cluster.yaml b/postgres-cluster.yaml deleted file mode 100644 index bb84009..0000000 --- a/postgres-cluster.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: postgresql.cnpg.io/v1 -kind: Cluster -metadata: - name: gobank-db -spec: - instances: 3 - - imageName: ghcr.io/cloudnative-pg/postgresql:18.3 - - bootstrap: - initdb: - database: gobank - owner: root - secret: - name: db-creds - - storage: - size: 1Gi - - affinity: - enablePodAntiAffinity: true - topologyKey: kubernetes.io/hostname \ No newline at end of file