apiVersion: apps/v1 kind: Deployment metadata: labels: app: randomly name: randomly namespace: randomly spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: randomly strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: randomly spec: containers: - env: - name: PORT value: '3000' - name: HOSTNAME value: 0.0.0.0 - name: NODE_ENV value: production image: gitea.imcu.ro/homeschool/randomly:latest imagePullPolicy: IfNotPresent livenessProbe: failureThreshold: 3 httpGet: path: / port: 3000 scheme: HTTP initialDelaySeconds: 15 periodSeconds: 20 successThreshold: 1 timeoutSeconds: 1 name: randomly ports: - containerPort: 3000 protocol: TCP readinessProbe: failureThreshold: 3 httpGet: path: / port: 3000 scheme: HTTP initialDelaySeconds: 5 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: 500m memory: 512Mi requests: cpu: 50m memory: 128Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst imagePullSecrets: - name: gitea-registry restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 --- apiVersion: v1 kind: Service metadata: name: randomly-service namespace: randomly spec: clusterIP: 10.43.57.214 clusterIPs: - 10.43.57.214 internalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack ports: - port: 80 protocol: TCP targetPort: 3000 selector: app: randomly sessionAffinity: None type: ClusterIP --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: randomly-ingress namespace: randomly spec: ingressClassName: traefik rules: - host: randomly.imcu.ro http: paths: - backend: service: name: randomly-service port: number: 80 path: / pathType: Prefix tls: - hosts: - randomly.imcu.ro secretName: randomly-imcu-ro-tls