apiVersion: apps/v1
kind: Deployment
metadata:
  name: wechat
  namespace: zhujq2018
spec:
  selector:
    matchLabels:
      app: wechat
  replicas: 1
  template:
    metadata:
      labels:
        app: wechat
    spec:
      containers:
        - name: wechat
          image: zhujq/wechat
          imagePullPolicy: "Always"
          env:
          - name: QOVERY_DATABASE_WECHAT_REDIS_HOST
            value: "wechat-redis"
          - name: QOVERY_DATABASE_WECHAT_REDIS_PORT
            value: "6379"
          - name: QOVERY_DATABASE_WECHAT_REDIS_PASSWORD
            value: "Juju1234"
          - name: QOVERY_DATABASE_WECHAT_MYSQL_USERNAME
            value: "zhujq"
          - name: QOVERY_DATABASE_WECHAT_MYSQL_PASSWORD
            value: "Juju1234"
          - name: QOVERY_DATABASE_WECHAT_MYSQL_HOST
            value: "wechat-mysql"
          - name: QOVERY_DATABASE_WECHAT_MYSQL_PORT
            value: "3306"
          - name: QOVERY_DATABASE_WECHAT_MYSQL_NAME
            value: "wechat"
          ports:
            - containerPort: 80
              protocol: TCP
          resources:
            limits:
              cpu: 400m
              memory: 128Mi
            requests:
              cpu: 10m
              memory: 64Mi
