apiVersion: apps/v1
kind: Deployment
metadata:
  name: animatedbook
  labels:
    app: animatedbook
spec:
  selector:
    matchLabels:
      app: animatedbook
  replicas: 1
  template:
    metadata:
      labels:
        app: animatedbook
    spec:
      serviceAccountName: animatedbook
      containers:
      - name: animatedbook
        image: linsun/animatedbook:v22
        imagePullPolicy: Always
        resources:
          requests:
            cpu: 100m
            memory: 100Mi
        ports:
        - name: http
          containerPort: 3000
        env:
        - name: VCAP_GIPHY_API_KEY
          value: "jyNPNgvgcIYoNWku6wC171WP24Sc5Xl3"
