https://rancher.com/ logo
#general
Title
# general
c

chilly-translator-36463

04/17/2023, 6:25 PM
Hi All I am breaking my head since couple of Days to deploy a simple pod in Rancher 2.6.11 in onenode cluster, here is my manifest file
Copy code
apiVersion: apps/v1
kind: Deployment
metadata:
  name: tea-deployment
  labels:
    app: tea
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tea
  template:
    metadata:
      labels:
        app: tea
    spec:
      containers:
      - name: tea
        image: nirulabs/tea:latest
        ports:
        - containerPort: 80
---
apiVersion: v1
kind: Service
metadata: 
  name: tea-service
spec: 
  type: NodePort
  selector: 
    app: tea
  ports: 
    - port: 8082
      targetPort: 80
      nodePort: 30003
---
apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
kind: Ingress
metadata:
  name: tea-ingress
spec:
  rules:
  - host: <http://example.com|example.com>
    http:
      paths:
      - pathType: Prefix
        path: "/"
        backend:
          service:
            name: tea-service
            port:
              number: 8082