SHARE
TWEET

Untitled

a guest Mar 20th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ingress.yaml
  2. apiVersion: extensions/v1beta1
  3. kind: Ingress
  4. metadata:
  5.   name: nginx
  6.   annotations:
  7.       http.port: "443"
  8. spec:
  9.   rules:
  10.     - host: {{ template "hostname" .Values.service.url}}
  11.       http:
  12.         paths:
  13.           - path: /
  14.             backend:
  15.               serviceName: nginx
  16.               servicePort: 80
  17.  
  18.  
  19. // service.yaml
  20. apiVersion: v1
  21. kind: Service
  22. metadata:
  23.   name: nginx
  24. spec:
  25.   selector:
  26.     app: nginx
  27.   ports:
  28.     - name: main
  29.       port: 80
  30.       targetPort: 80
  31.       protocol: TCP
  32.  
  33. // deployment.yaml
  34. apiVersion: extensions/v1beta1
  35. kind: Deployment
  36. metadata:
  37.   name: nginx
  38. spec:
  39.   replicas: 3
  40.   template:
  41.     metadata:
  42.       labels:
  43.         app: nginx
  44.     spec:
  45.       containers:
  46.       - name: nginx
  47.         image: nginx:latest
  48.         ports:
  49.         - containerPort: 80
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top