Skip to content

Instantly share code, notes, and snippets.

@conr
Last active October 19, 2017 13:27
Show Gist options
  • Save conr/42ba2578b8558bc93c5197fd2f5396de to your computer and use it in GitHub Desktop.
Save conr/42ba2578b8558bc93c5197fd2f5396de to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: DeploymentConfig
metadata:
name: prometheus
namespace: myproject
selfLink: /oapi/v1/namespaces/myproject/deploymentconfigs/prometheus
uid: f3524153-1ab0-11e7-926b-ce8a898d4953
resourceVersion: '1219'
generation: 5
creationTimestamp: '2017-04-06T10:08:15Z'
labels:
app: prometheus
annotations:
openshift.io/generated-by: OpenShiftNewApp
spec:
strategy:
type: Rolling
rollingParams:
updatePeriodSeconds: 1
intervalSeconds: 1
timeoutSeconds: 600
maxUnavailable: 25%
maxSurge: 25%
resources: {}
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- prometheus
from:
kind: ImageStreamTag
namespace: myproject
name: 'prometheus:latest'
lastTriggeredImage: >-
prom/prometheus@sha256:06d9e878fbca272c5f55ebc2863694b5076ff01f810c6d187767cd53891ba453
replicas: 1
test: false
selector:
app: prometheus
deploymentconfig: prometheus
template:
metadata:
creationTimestamp: null
labels:
app: prometheus
deploymentconfig: prometheus
annotations:
openshift.io/container.prometheus.image.entrypoint: >-
["/bin/prometheus","-config.file=/etc/prometheus/prometheus.yml","-storage.local.path=/prometheus","-web.console.libraries=/usr/share/prometheus/console_libraries","-web.console.templates=/usr/share/prometheus/consoles"]
openshift.io/generated-by: OpenShiftNewApp
spec:
volumes:
- name: prometheus-volume-1
emptyDir: {}
- name: prom-config-example-volume
configMap:
name: prom-config-example
defaultMode: 420
containers:
- name: prometheus
image: >-
prom/prometheus@sha256:06d9e878fbca272c5f55ebc2863694b5076ff01f810c6d187767cd53891ba453
ports:
- containerPort: 9090
protocol: TCP
resources: {}
volumeMounts:
- name: prometheus-volume-1
mountPath: /prometheus
- name: prom-config-example-volume
mountPath: /etc/prometheus/
terminationMessagePath: /dev/termination-log
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
status:
latestVersion: 3
observedGeneration: 5
replicas: 1
updatedReplicas: 1
availableReplicas: 1
details:
message: config change
causes:
- type: ConfigChange
conditions:
- type: Available
status: 'True'
lastTransitionTime: '2017-04-06T10:23:23Z'
message: Deployment config has minimum availability.
- type: Progressing
status: 'True'
lastTransitionTime: '2017-04-06T10:23:24Z'
reason: NewReplicationControllerAvailable
message: Replication controller "prometheus-3" has completed progressing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment