apiVersion: apps/v1 kind: Deployment metadata: name: oem-deployment namespace: hsv2 spec: replicas: %d selector: matchLabels: app: oem template: metadata: labels: app: oem spec: topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: ScheduleAnyway labelSelector: matchLabels: app: oem containers: - name: oem image: %s imagePullPolicy: IfNotPresent ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: oem-service namespace: hsv2 spec: selector: app: oem ports: - protocol: TCP port: 80 targetPort: 80 type: ClusterIP