apiVersion: apps/v1
kind: Deployment
metadata:
  name: sonarqube-deployment
  labels:
    app: sonarqube
spec:
  replicas: 1
  selector:
    matchLabels:
      app: sonarqube
  template:
    metadata:
      labels:
        app: sonarqube
    spec:
      containers:
      - name: sonarqube
        image: sonarqube:7.9.2-community
        # resources:
        #   limits:
        #     memory: "4Gi"
        #     cpu: "1000m"
        #   requests:
        #     memory: "2Gi"
        #     cpu: "500m"
        ports:
        - containerPort: 9000
