apiVersion: apps/v1
kind: Deployment
metadata:
  name: ${project_name}
  namespace: ${namespace}
  labels:
    app: ${project_name}
spec:
  replicas: 1 # 期望创建1个实例（即1个pod）
  selector:   # 选择label： app=${project_name} 的pod来创建实例
    matchLabels:
      app: ${project_name}
  template:
    metadata:
      labels:
        app: ${project_name}
    spec:
      containers:
      - name: ${project_name}
        image: internalacr.azurecr.cn/${image_repository}
        imagePullPolicy: Always
        ports:
        - containerPort: 80
