Skip to content

Instantly share code, notes, and snippets.

@jamesfalkner
Last active January 29, 2019 22:22
Show Gist options
  • Save jamesfalkner/813c5ee2cea6618f4bbc464f1f136931 to your computer and use it in GitHub Desktop.
Save jamesfalkner/813c5ee2cea6618f4bbc464f1f136931 to your computer and use it in GitHub Desktop.
guides.yaml
kind: List
metadata: {}
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
labels:
app: guides
name: guides
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: guides
deploymentconfig: guides
sessionAffinity: None
type: ClusterIP
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: guides
name: guides
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
app: guides
deploymentconfig: guides
strategy:
activeDeadlineSeconds: 21600
resources: {}
type: Recreate
template:
metadata:
labels:
app: guides
deploymentconfig: guides
spec:
containers:
- env:
- name: CONTENT_URL_PREFIX
value: https://raw.githubusercontent.com/siamaksade/coolstore-demo-guides/master
- name: WORKSHOPS_URLS
value: https://raw.githubusercontent.com/siamaksade/coolstore-demo-guides/master/demo-cicd-eap.yml
image: osevg/workshopper:latest
imagePullPolicy: Always
name: guides
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: guides
name: guides
spec:
port:
targetPort: 8080-tcp
to:
kind: Service
name: guides
weight: 100
wildcardPolicy: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment