diff --git a/kustomization.yaml b/kustomization.yaml index 8408d7f..fbe89a9 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -14,6 +14,7 @@ resources: - secrets.yaml - storage.yaml - configuration.yaml +- postgres-deployment.yaml # - deployment.yaml # - service.yaml # - ingress.yaml diff --git a/deployment.yaml b/postgres-deployment.yaml similarity index 62% rename from deployment.yaml rename to postgres-deployment.yaml index ed19793..766eaa7 100644 --- a/deployment.yaml +++ b/postgres-deployment.yaml @@ -55,48 +55,3 @@ - name: postgres-persistent-storage persistentVolumeClaim: claimName: postgres-pvc ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: gitea - namespace: gitea - labels: - app: gitea -spec: - selector: - matchLabels: - app: gitea - strategy: - #type: Recreate - type: RollingUpdate - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 - template: - metadata: - labels: - app: gitea - spec: - containers: - - image: gitea/gitea:1.15.4 - name: gitea - envFrom: - - configMapRef: - name: gitea-env - env: - - name: DB_PASSWD - valueFrom: - secretKeyRef: - name: gitea-secrets - key: pg_password - ports: - - containerPort: 3000 - name: gitea - volumeMounts: - - name: gitea-persistent-storage - mountPath: /data - volumes: - - name: gitea-persistent-storage - persistentVolumeClaim: - claimName: gitea-pvc \ No newline at end of file