apiVersion: apps/v1 kind: Deployment metadata: name: labels: app: spec: replicas: 1 selector: matchLabels: app: template: metadata: labels: app: spec: volumes: - name: projects-volume emptyDir: {} containers: - name: sandbox image: ishaan1013/sandbox:latest ports: - containerPort: 4000 - containerPort: 3000 volumeMounts: - name: projects-volume mountPath: /projects resources: requests: cpu: "1" memory: "1Gi" limits: cpu: "1" memory: "1Gi" env: - name: CF_API_TOKEN value: - name: CF_USER_ID value: --- apiVersion: v1 kind: Service metadata: name: spec: selector: app: ports: - protocol: TCP name: ws port: 4000 targetPort: 4000 - protocol: TCP name: user port: 3000 targetPort: 3000 --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: annotations: kubernetes.io/ingress.class: "nginx" spec: ingressClassName: nginx rules: - host: .ws.ishaand.com http: paths: - path: / pathType: Prefix backend: service: name: port: number: 4000 - host: .s.ishaand.com http: paths: - path: / pathType: Prefix backend: service: name: port: number: 3000