Skip to content

Instantly share code, notes, and snippets.

@spadgett
Created June 21, 2018 16:28
Show Gist options
  • Save spadgett/bb5996894def58228177a2e83799ba8e to your computer and use it in GitHub Desktop.
Save spadgett/bb5996894def58228177a2e83799ba8e to your computer and use it in GitHub Desktop.
CI console deployment
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: '23'
creationTimestamp: '2018-05-23T16:41:56Z'
generation: 51
labels:
app: openshift-console
component: ui
name: console
namespace: tectonic-console
resourceVersion: '21479385'
selfLink: /apis/apps/v1/namespaces/tectonic-console/deployments/console
uid: 345d99ec-5ea8-11e8-8ae2-c62f26322331
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: openshift-console
component: ui
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: openshift-console
component: ui
name: console
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app: openshift-console
topologyKey: kubernetes.io/hostname
weight: 100
containers:
- command:
- /opt/bridge/bin/bridge
env:
- name: BRIDGE_K8S_MODE
value: in-cluster
- name: BRIDGE_K8S_AUTH
value: openshift
- name: BRIDGE_LISTEN
value: 'https://0.0.0.0:8443'
- name: BRIDGE_TLS_CERT_FILE
value: /var/serving-cert/tls.crt
- name: BRIDGE_TLS_KEY_FILE
value: /var/serving-cert/tls.key
- name: BRIDGE_BASE_ADDRESS
valueFrom:
configMapKeyRef:
key: consoleBaseAddress
name: console-config
- name: BRIDGE_LOGO_IMAGE_NAME
value: os-origin
- name: BRIDGE_USER_AUTH
value: openshift
- name: BRIDGE_USER_AUTH_OIDC_ISSUER_URL
value: 'https://api.ci.openshift.org/'
- name: BRIDGE_USER_AUTH_OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
key: clientID
name: console-oauth-client
- name: BRIDGE_USER_AUTH_OIDC_CLIENT_SECRET_FILE
value: /var/oauth-client/client-secret
- name: BRIDGE_TECTONIC_CLUSTER_NAME
valueFrom:
configMapKeyRef:
key: clusterName
name: console-config
- name: BRIDGE_PUBLIC_DIR
value: /opt/bridge/static
- name: BRIDGE_CA_FILE
value: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
image: 'quay.io/coreos/tectonic-console:pr_125_build_385'
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 8443
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: console
ports:
- containerPort: 8443
protocol: TCP
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/serving-cert
name: serving-cert
readOnly: true
- mountPath: /var/oauth-client
name: volume-y98t4
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: serving-cert
secret:
defaultMode: 400
secretName: console-serving-cert
- name: volume-y98t4
secret:
defaultMode: 420
items:
- key: clientSecret
path: client-secret
secretName: console-oauth-client
status:
availableReplicas: 1
conditions:
- lastTransitionTime: '2018-06-08T18:24:07Z'
lastUpdateTime: '2018-06-19T13:37:29Z'
message: ReplicaSet "console-66fff87fcb" has successfully progressed.
reason: NewReplicaSetAvailable
status: 'True'
type: Progressing
- lastTransitionTime: '2018-06-19T21:43:08Z'
lastUpdateTime: '2018-06-19T21:43:08Z'
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: 'True'
type: Available
observedGeneration: 51
readyReplicas: 1
replicas: 1
updatedReplicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment