Demo entry 6853175

py

   

Submitted by anonymous on Jul 22, 2019 at 05:22
Language: YAML. Code size: 656 Bytes.

apiVersion: v1
kind: Service
metadata:
  name: shanghaicas-server
  namespace: ciie
  labels:
    k8s-app: shanghaicas-server
spec:
  type: NodePort
  ports:
  - port: 8080
    protocol: TCP
    targetPort: 8080
    name: http
    nodePort: 32023
  selector:
    k8s-app: shanghaicas-server
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: shanghaicas-server
  namespace: ciie
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: ciiecas2.com
    http:
      paths:
      - path: /
        backend:
          serviceName: shanghaicas-server
          servicePort: 8080

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).