Untitled

From Mustard Leopard, 7 Years ago, written in Plain Text, viewed 2 times.
URL https://paste.blessuren.de/view/e35424f3 Embed
Download Paste or View Raw
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4.   name: my-nginx
  5.   labels:
  6.     run: my-nginx
  7. spec:
  8.   type: NodePort
  9.   ports:
  10.   - port: 8080
  11.     targetPort: 80
  12.     protocol: TCP
  13.     name: http
  14.   - port: 443
  15.     protocol: TCP
  16.     name: https
  17.   selector:
  18.     run: my-nginx
  19. ---
  20. apiVersion: apps/v1
  21. kind: Deployment
  22. metadata:
  23.   name: my-nginx
  24.   labels:
  25.     app: nginx
  26. spec:
  27.   replicas: 3
  28.   selector:
  29.     matchLabels:
  30.       app: nginx
  31.   template:
  32.     metadata:
  33.       labels:
  34.         app: nginx
  35.     spec:
  36.       containers:
  37.       - name: nginx
  38.         image: nginx:latest
  39.         ports:
  40.         - containerPort: 80
  41.  

Reply to "Untitled"

Here you can reply to the paste above