Created
January 28, 2017 10:27
-
-
Save nhr/98501e6fa934b1389beb7ac75c92bc1c to your computer and use it in GitHub Desktop.
This template can be run on an OpenShift cluster to start a very basic SWN Sector Generator deployment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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