Advertisement
yiorgos

web.yaml

Oct 3rd, 2024
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.86 KB | None | 0 0
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5.   name: web
  6. spec:
  7.   type: NodePort
  8.   selector:
  9.     web: ok
  10.   ports:
  11.   - port: 80
  12.     targetPort: 80
  13. ---
  14. apiVersion: apps/v1
  15. kind: Deployment
  16. metadata:
  17.   labels:
  18.     app: nginx
  19.   name: nginx
  20. spec:
  21.   replicas: 1
  22.   selector:
  23.     matchLabels:
  24.       app: nginx
  25.   template:
  26.     metadata:
  27.       labels:
  28.         app: nginx
  29.         web: ok
  30.     spec:
  31.       containers:
  32.       - image: nginx
  33.         name: nginx
  34.         ports:
  35.         - containerPort: 80
  36. ---
  37. apiVersion: apps/v1
  38. kind: Deployment
  39. metadata:
  40.   labels:
  41.     app: httpd
  42.   name: httpd
  43. spec:
  44.   replicas: 1
  45.   selector:
  46.     matchLabels:
  47.       app: httpd
  48.   template:
  49.     metadata:
  50.       labels:
  51.         app: httpd
  52.         web: ok
  53.     spec:
  54.       containers:
  55.       - image: httpd
  56.         name: httpd
  57.         ports:
  58.         - containerPort: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement