Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 58 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. apiVersion: apps/v1
  2. kind: StatefulSet
  3. metadata:
  4.   labels:
  5.     app: rabbitmq
  6.   name: rabbitmq
  7.   namespace: development
  8.   resourceVersion: "119265565"
  9.   selfLink: /apis/apps/v1/namespaces/development/statefulsets/rabbitmq
  10.   uid: 10c2fabc-cbb3-11e7-8821-00505695519e
  11. spec:
  12.   podManagementPolicy: OrderedReady
  13.   replicas: 3
  14.   revisionHistoryLimit: 10
  15.   selector:
  16.     matchLabels:
  17.       app: rabbitmq
  18.   serviceName: rabbitmq
  19.   template:
  20.     metadata:
  21.       creationTimestamp: null
  22.       labels:
  23.         app: rabbitmq
  24.     spec:
  25.       containers:
  26.       - env:
  27.         - name: RABBITMQ_ERLANG_COOKIE
  28.           valueFrom:
  29.             secretKeyRef:
  30.               key: rabbitmq-erlang-cookie
  31.               name: rabbitmq-erlang-cookie
  32.         image: rabbitmq:1.0
  33.         imagePullPolicy: IfNotPresent
  34.         lifecycle:
  35.           postStart:
  36.             exec:
  37.               command:
  38.               - /bin/sh
  39.               - -c
  40.               - |
  41.                 if [ -z "$(grep rabbitmq /etc/resolv.conf)" ]; then
  42.                   sed "s/^search \([^ ]\+\)/search rabbitmq.\1 \1/" /etc/resolv.conf > /etc/resolv.conf.new;
  43.                   cat /etc/resolv.conf.new > /etc/resolv.conf;
  44.                   rm /etc/resolv.conf.new;
  45.                 fi; until rabbitmqctl node_health_check; do sleep 1; done; if [[ "$HOSTNAME" != "rabbitmq-0" && -z "$(rabbitmqctl cluster_status | grep rabbitmq-0)" ]]; then
  46.                   rabbitmqctl stop_app;
  47.                   rabbitmqctl join_cluster rabbit@rabbitmq-0;
  48.                   rabbitmqctl start_app;
  49.                 fi; rabbitmqctl set_policy ha-all "." '{"ha-mode":"exactly","ha-params":3,"ha-sync-mode":"automatic"}'
  50.         name: rabbitmq
  51.         ports:
  52.         - containerPort: 5672
  53.           protocol: TCP
  54.         - containerPort: 5671
  55.           protocol: TCP
  56.         - containerPort: 15672
  57.           protocol: TCP
  58.         - containerPort: 25672
  59.           protocol: TCP
  60.         - containerPort: 4369
  61.           protocol: TCP
  62.         resources:
  63.           limits:
  64.             cpu: 400m
  65.             memory: 2Gi
  66.           requests:
  67.             cpu: 200m
  68.             memory: 1Gi
  69.         terminationMessagePath: /dev/termination-log
  70.         terminationMessagePolicy: File
  71.         volumeMounts:
  72.         - mountPath: /var/lib/rabbitmq
  73.           name: rabbitmq-persistent-data-storage
  74.         - mountPath: /etc/rabbitmq
  75.           name: rabbitmq-config
  76.       dnsPolicy: ClusterFirst
  77.       restartPolicy: Always
  78.       schedulerName: default-scheduler
  79.       securityContext: {}
  80.       terminationGracePeriodSeconds: 10
  81.       volumes:
  82.       - name: rabbitmq-config
  83.         secret:
  84.           defaultMode: 420
  85.           secretName: rabbitmq-config
  86.   updateStrategy:
  87.     type: OnDelete
  88.   volumeClaimTemplates:
  89.   - metadata:
  90.       creationTimestamp: null
  91.       name: rabbitmq-persistent-data-storage
  92.     spec:
  93.       accessModes:
  94.       - ReadWriteOnce
  95.       resources:
  96.         requests:
  97.           storage: 100Gi
  98.     status:
  99.       phase: Pending
  100. status:
  101.   currentReplicas: 1
  102.   currentRevision: rabbitmq-4234207235
  103.   observedGeneration: 1
  104.   replicas: 1
  105.   updateRevision: rabbitmq-4234207235
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