diff --git a/deployment/helm/templates/cms/deployment.yaml b/deployment/helm/templates/cms/deployment.yaml deleted file mode 100644 index bd11bc53..00000000 --- a/deployment/helm/templates/cms/deployment.yaml +++ /dev/null @@ -1,72 +0,0 @@ -kind: Deployment -apiVersion: apps/v1 -metadata: - name: ytf-cms-deployment - namespace: {{ .Release.Namespace }} -spec: - selector: - matchLabels: - app: ytf-cms - template: - metadata: - labels: - app: ytf-cms - spec: - imagePullSecrets: - - name: {{ .Values.imagePullSecrets.github }} - containers: - - name: ytf-cms - image: {{ .Values.cms.deployment.image.name }}:{{ .Values.cms.deployment.image.tag }} - ports: - - name: payload - containerPort: 3001 - livenessProbe: - initialDelaySeconds: 5 - periodSeconds: 5 - httpGet: - path: /admin - port: 3001 - volumeMounts: - - mountPath: /app/packages/cms/dist/media - name: cms-media-upload - env: - - name: ENABLE_DATASEEDER - value: "true" - - name: FRONTEND_URL - value: https://{{ .Values.common.baseDomain }} - - name: TYPESENSE_API_URL - value: "http://ytf-typesense-service:8108" - - name: BACKEND_URL - value: http://ytf-backend-service - - name: INTERNAL_BACKEND_URL - value: http://ytf-backend-yesbot-service:5001 - {{- range .Values.cms.secret.secrets }} - - name: {{ .name }} - valueFrom: - secretKeyRef: - name: ytf-cms-secret - key: {{ .name }} - {{- end }} - - name: TYPESENSE_API_KEY - valueFrom: - secretKeyRef: - name: ytf-typesense-secret - key: TYPESENSE_API_KEY - volumes: - - name: cms-media-upload - persistentVolumeClaim: - claimName: cms-media-upload - ---- - -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: cms-media-upload - namespace: {{ .Release.Namespace }} -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 4Gi diff --git a/deployment/helm/templates/cms/ingress.yaml b/deployment/helm/templates/cms/ingress.yaml deleted file mode 100644 index 9392c2f3..00000000 --- a/deployment/helm/templates/cms/ingress.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: ytf-cms-ingress - namespace: {{ .Release.Namespace }} - annotations: - kubernetes.io/ingress.class: {{ .Values.ingress.class }} - kubernetes.io/tls-acme: 'true' - cert-manager.io/cluster-issuer: {{ .Values.ingress.issuer }} - {{- if .Values.ingress.basicAuth.enabled }} - nginx.ingress.kubernetes.io/auth-type: basic - nginx.ingress.kubernetes.io/auth-secret: basic-auth - nginx.ingress.kubernetes.io/auth-realm: 'Authentication required - Work in Progress' - {{- end }} - labels: - app: cms-ingress -spec: - tls: - - hosts: - - admin.{{ .Values.common.baseDomain }} - secretName: {{ .Values.common.certName }}-admin - rules: - - host: admin.{{ .Values.common.baseDomain }} - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: ytf-cms-service - port: - number: 80 diff --git a/deployment/helm/templates/cms/service.yaml b/deployment/helm/templates/cms/service.yaml deleted file mode 100644 index 00e44588..00000000 --- a/deployment/helm/templates/cms/service.yaml +++ /dev/null @@ -1,13 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - namespace: {{ .Release.Namespace }} - name: ytf-cms-service - labels: - app: ytf-cms -spec: - ports: - - port: 80 - targetPort: payload - selector: - app: ytf-cms