Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This template can be run on an OpenShift cluster to start a very basic SWN Sector Generator deployment.
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: swn
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
creationTimestamp: null
labels:
app: swn
name: swn
spec:
output:
to:
kind: ImageStreamTag
name: swn:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
git:
uri: https://github.com/nhr/swn.git
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: perl-520-centos7-swn:latest
type: Source
triggers:
- github:
secret: Isu_Ve1dbi_9CNvNzhi5
type: GitHub
- generic:
secret: PvBDWlBkRYc3oTXMm-rR
type: Generic
- type: ConfigChange
- imageChange: {}
type: ImageChange
status:
lastVersion: 0
- apiVersion: v1
kind: DeploymentConfig
metadata:
creationTimestamp: null
labels:
app: swn
name: swn
spec:
replicas: 1
selector:
app: swn
deploymentconfig: swn
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
creationTimestamp: null
labels:
app: swn
deploymentconfig: swn
spec:
containers:
- image: swn
imagePullPolicy: Always
name: swn
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- swn
from:
kind: ImageStreamTag
name: swn:latest
type: ImageChange
status:
availableReplicas: 1
observedGeneration: 2
replicas: 1
updatedReplicas: 1
- apiVersion: v1
kind: Service
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: swn
name: swn
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: swn
deploymentconfig: swn
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: ImageStream
metadata:
creationTimestamp: null
labels:
app: swn
name: perl-520-centos7-swn
spec:
dockerImageRepository: "nhripps/perl-520-centos7-swn"
status:
dockerImageRepository: ""
- apiVersion: v1
kind: ImageStream
metadata:
creationTimestamp: null
labels:
app: swn
name: swn
spec: {}
status:
dockerImageRepository: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.