apiVersion: v1
kind: Pod
metadata:
  name: nginx-pod-with-resource-limits
  labels:
    app: nginx-app
spec:
  securityContext:
    runAsUser: 1000
  containers:
   - name: nginx-container
     image: nginx
     resources:
       requests:
         cpu: 1
         memory: "512Mi"
       limits:
         cpu: 2
         memory: "1G"
