Loading

Paste #pyttoxhyx

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4.   name: gerrit
  5.   namespace: zuul
  6.   labels:
  7.     app: gerrit
  8. spec:
  9.   replicas: 1
  10.   selector:
  11.     matchLabels:
  12.       app: gerrit
  13.   template:
  14.     metadata:
  15.       labels:
  16.         app: gerrit
  17.     spec:
  18.       containers:
  19.       - name: gerrit
  20.         image: gerritcodereview/gerrit:latest
  21.         command: ["sh","/var/entrypoint/entrypoint.sh"]
  22.         ports:
  23.         - containerPort: 8080
  24.         - containerPort: 29418
  25.         volumeMounts:
  26.         - name: playbooks
  27.           mountPath: '/var/playbooks'
  28.         - name: gerrit-ssh
  29.           mountPath: '/var/ssh/admin'
  30.           readOnly: true
  31.         - name: nodessh
  32.           mountPath: '/var/node'
  33.         - name: entrypoint
  34.           mountPath: '/var/entrypoint'
  35.       volumes:
  36.       - name: playbooks
  37.         configMap:
  38.           name: playbooks-config
  39.           defaultMode: 0777
  40.       - name: gerrit-ssh
  41.         secret:
  42.           secretName: gerrit-admin-ssh
  43.       - name: nodessh
  44.         emptyDir: {}
  45.       - name: entrypoint
  46.         configMap:
  47.           name: gerrit-entrypoint
  48.           defaultMode: 0777
  49. ---
  50. apiVersion: v1
  51. kind: Service
  52. metadata:
  53.   name: gerrit-service
  54.   namespace: zuul
  55. spec:
  56.   selector:
  57.     app: gerrit
  58.   ports:
  59.     - name: baseurl
  60.       protocol: TCP
  61.       port: 8080
  62.       targetPort: 8080
  63.     - name: connection-port
  64.       protocol: TCP
  65.       port: 29418
  66.       targetPort: 29418