apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: client-java-cloudpath-us-east7
  name: client-java-cloudpath-us-east7
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: client-java-cloudpath-us-east7
  template:
    metadata:
      labels:
        app: client-java-cloudpath-us-east7
    spec:
      containers:
      - image: "us-docker.pkg.dev/directpathgrpctesting-client/directpathgrpctesting-client/directpathgrpctesting-client-java-cloudpath-useast7"
        imagePullPolicy: Always
        name: client-java-cloudpath-us-east7
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: NAMESPACE_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: CONTAINER_NAME
          value: client-java-cloudpath-us-east7
        - name: OTEL_RESOURCE_ATTRIBUTES
          value: k8s.pod.name=$(POD_NAME),k8s.namespace.name=$(NAMESPACE_NAME),k8s.container.name=$(CONTAINER_NAME)
        resources:
          requests:
            cpu: "2"
            memory: "256Mi"
          limits:
            cpu: "2"
            memory: "1024Mi"
