apiVersion: apps/v1
kind: Deployment
metadata:
  name: template-service-broker
  namespace: tsb-ns
  labels:
    hypercloud4: template-service-broker
    name: template-service-broker
spec:
  replicas: 1
  selector:
    matchLabels:
      hypercloud4: template-service-broker
  template:
    metadata:
      name: template-service-broker
      labels:
        hypercloud4: template-service-broker
    spec:
      containers:
      - name: template-service-broker
        image: tmaxcloudck/template-service-broker:b4.0.0.5
        imagePullPolicy: Always
        env:
        - name: BackIp
          valueFrom:
            fieldRef:
              fieldPath: status.podIP
        - name: INSTANCEUUID
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: TZ
          value: Asia/Seoul
        ports:
        - containerPort: 28677
        resources:
          limits:
            cpu: "0.5"
            memory: "1Gi"
          requests:
            cpu: "0.5"
            memory: "1Gi"
      serviceAccountName: tsb-account
