apiVersion: v1 kind: Namespace metadata: name: cube-articulate --- apiVersion: apps/v1 kind: Deployment metadata: name: articulate namespace: cube-articulate labels: app: articulate spec: replicas: 1 selector: matchLabels: app: articulate template: metadata: labels: app: articulate spec: imagePullSecrets: - name: registry-creds containers: - name: articulate image: registry.famzheng.me/mochi/articulate:latest imagePullPolicy: IfNotPresent ports: - containerPort: 8080 name: http readinessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 1 periodSeconds: 5 livenessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 5 periodSeconds: 15 resources: requests: cpu: 10m memory: 16Mi limits: cpu: 200m memory: 64Mi --- apiVersion: v1 kind: Service metadata: name: articulate namespace: cube-articulate spec: selector: app: articulate ports: - name: http port: 80 targetPort: 8080 --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: articulate namespace: cube-articulate spec: ingressClassName: traefik rules: - host: articulate.famzheng.me http: paths: - path: / pathType: Prefix backend: service: name: articulate port: number: 80