Advertisement
QualibreInfo

frontend-deployment.yml

Jun 3rd, 2022
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.21 KB | None | 0 0
  1. apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
  2. kind: Deployment
  3. metadata:
  4.   name: frontend
  5.   labels:
  6.     app: guestbook
  7. spec:
  8.   selector:
  9.     matchLabels:
  10.       app: guestbook
  11.       tier: frontend
  12.   replicas: 3
  13.   template:
  14.     metadata:
  15.       labels:
  16.         app: guestbook
  17.         tier: frontend
  18.     spec:
  19.       containers:
  20.       - name: php-redis
  21.         image: docker-all.devops.etat-ge.ch/google-samples/gb-frontend:v4
  22.         resources:
  23.           requests:
  24.             cpu: 100m
  25.             memory: 100Mi
  26.           limit:
  27.             cpu: 500m
  28.             memory: 200Mi
  29.         env:
  30.         - name: GET_HOSTS_FROM
  31.           value: dns
  32.           # Using `GET_HOSTS_FROM=dns` requires your cluster to
  33.           # provide a dns service. As of Kubernetes 1.3, DNS is a built-in
  34.           # service launched automatically. However, if the cluster you are using
  35.           # does not have a built-in DNS service, you can instead
  36.           # access an environment variable to find the master
  37.           # service's host. To do so, comment out the 'value: dns' line above, and
  38.           # uncomment the line below:
  39.           # value: env
  40.         ports:
  41.         - containerPort: 80
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement