daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Nov 6th, 2018 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4.   labels:
  5.     app: sonarqube
  6.   name: sonarqube
  7. spec:
  8.   replicas: 1
  9.   template:
  10.     metadata:
  11.       labels:
  12.         app: sonarqube
  13.     spec:
  14.       containers:
  15.         - name: sonarqube
  16.           image: sonarqube:7.1
  17.           resources:
  18.             requests:
  19.               cpu: 500m
  20.               memory: 1024Mi
  21.             limits:
  22.               cpu: 2000m
  23.               memory: 2048Mi
  24.           volumeMounts:
  25.           - mountPath: "/opt/sonarqube/data/"
  26.             name: sonar-data
  27.           - mountPath: "/opt/sonarqube/extensions/"
  28.             name: sonar-extensions
  29.           env:
  30.           - name: "SONARQUBE_JDBC_USERNAME"
  31.             value: "medium@medium"
  32.           - name: "SONARQUBE_JDBC_URL"
  33.             value: "jdbc:postgresql://medium.postgres.database.azure.com/sonar"
  34.           - name: "SONARQUBE_JDBC_PASSWORD"
  35.             valueFrom:
  36.               secretKeyRef:
  37.                 name: postgres
  38.                 key: password
  39.           ports:
  40.           - containerPort: 9000
  41.             protocol: TCP
  42.       volumes:
  43.       - name: sonar-data
  44.         persistentVolumeClaim:
  45.           claimName: sonar-data
  46.       - name: sonar-extensions
  47.         persistentVolumeClaim:
  48.           claimName: sonar-extensions
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top