diff --git a/apps/base/piedmont/deployment-api.yaml b/apps/base/piedmont/deployment-api.yaml deleted file mode 100644 index e031271..0000000 --- a/apps/base/piedmont/deployment-api.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: piedmont-contact - namespace: piedmont -spec: - replicas: 1 - selector: - matchLabels: - app: piedmont-contact - template: - metadata: - labels: - app: piedmont-contact - spec: - tolerations: - - key: dedicated - operator: Exists - effect: PreferNoSchedule - nodeSelector: - kubernetes.io/hostname: linode - containers: - - name: contact-api - image: forgejo.siriusdevops.com/sirius/phs-contact:latest - imagePullPolicy: Always - command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"] - ports: - - containerPort: 8090 - name: http - env: - - name: TG_TOKEN - valueFrom: - secretKeyRef: - name: piedmont-contact - key: TG_TOKEN - - name: TG_CHAT - valueFrom: - secretKeyRef: - name: piedmont-contact - key: TG_CHAT - readinessProbe: - httpGet: - path: /health - port: 8090 - initialDelaySeconds: 5 - periodSeconds: 10 - resources: - requests: - cpu: 50m - memory: 128Mi - limits: - memory: 256Mi diff --git a/apps/base/piedmont/httproute.yaml b/apps/base/piedmont/httproute.yaml index 446142b..6d094e3 100644 --- a/apps/base/piedmont/httproute.yaml +++ b/apps/base/piedmont/httproute.yaml @@ -11,13 +11,6 @@ spec: - piedmonthomesvc.com - www.piedmonthomesvc.com rules: - - matches: - - path: - type: PathPrefix - value: /api/contact - backendRefs: - - name: piedmont-contact - port: 8090 - matches: - path: type: PathPrefix diff --git a/apps/base/piedmont/kustomization.yaml b/apps/base/piedmont/kustomization.yaml index 04276f6..fbda9d3 100644 --- a/apps/base/piedmont/kustomization.yaml +++ b/apps/base/piedmont/kustomization.yaml @@ -3,7 +3,5 @@ kind: Kustomization resources: - namespace.yaml - deployment.yaml - - deployment-api.yaml - service.yaml - - service-api.yaml - httproute.yaml diff --git a/apps/base/piedmont/service-api.yaml b/apps/base/piedmont/service-api.yaml deleted file mode 100644 index 246eeb4..0000000 --- a/apps/base/piedmont/service-api.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: piedmont-contact - namespace: piedmont -spec: - selector: - app: piedmont-contact - ports: - - name: http - port: 8090 - targetPort: 8090