[planet-web/oscp] Add OSCP template
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planet-web/oscp] Add OSCP template
- Date: Thu, 29 Aug 2019 11:16:17 +0000 (UTC)
commit f7724f1841652058d90e6891b0e7e4dd709bf97c
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Thu Aug 29 13:16:19 2019 +0200
Add OSCP template
oscp.yaml | 184 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 184 insertions(+)
---
diff --git a/oscp.yaml b/oscp.yaml
new file mode 100644
index 0000000..f46e827
--- /dev/null
+++ b/oscp.yaml
@@ -0,0 +1,184 @@
+---
+kind: Template
+apiVersion: v1
+metadata:
+ name: planet-web
+ annotations:
+ openshift.io/display-name: "GNOME Planets"
+ description: Openshift template for GNOME planets
+parameters:
+- name: IS_NAMESPACE
+ description: The OpenShift Namespace where the ImageStream resides.
+ displayName: Namespace
+ value: planet-web
+- name: IS_NAME
+ description: The OpenShift ImageStream name.
+ displayName: Image Stream
+ value: planet-web
+- name: PLANET_NAME
+ description: The name of planet to deploy, as listed in config/ directory of planet-web repository
+ displayName: Planet name
+ required: true
+- name: PLANET_DOMAIN
+ description: Domain at which planet should be available
+ displayName: Planet domain
+ required: true
+
+objects:
+- apiVersion: build.openshift.io/v1
+ kind: BuildConfig
+ metadata:
+ name: planet-web
+ spec:
+ runPolicy: Serial
+ source:
+ git:
+ uri: https://gitlab.gnome.org/Infrastructure/planet-web.git
+ ref: oscp
+ strategy:
+ dockerStrategy:
+ dockerfilePath: Dockerfile
+ output:
+ to:
+ kind: ImageStreamTag
+ name: ${IS_NAME}:latest
+
+- apiVersion: image.openshift.io/v1
+ kind: ImageStream
+ metadata:
+ generation: 2
+ name: ${IS_NAME}
+ spec:
+ lookupPolicy:
+ local: false
+ tags:
+ - annotations: null
+ from:
+ kind: DockerImage
+ name: ${IS_NAME}:latest
+ generation: 2
+ importPolicy: {}
+ name: ${IS_VERSION}
+ referencePolicy:
+ type: Source
+
+- kind: DeploymentConfig
+ apiVersion: v1
+ metadata:
+ name: planet-web-${PLANET_NAME}
+ generation: 1
+ labels:
+ app: planet-web-${PLANET_NAME}
+ annotations: {}
+ spec:
+ strategy:
+ type: Rolling
+ rollingParams:
+ updatePeriodSeconds: 1
+ intervalSeconds: 1
+ timeoutSeconds: 180
+ maxUnavailable: 25%
+ maxSurge: 25%
+ resources: {}
+ activeDeadlineSeconds: 21600
+ triggers:
+ - type: ConfigChange
+ - type: ImageChange
+ imageChangeParams:
+ automatic: true
+ containerNames:
+ - planet-web-${PLANET_NAME}
+ from:
+ kind: ImageStreamTag
+ namespace: ${IS_NAMESPACE}
+ name: ${IS_NAME}:latest
+ replicas: 1
+ revisionHistoryLimit: 10
+ test: false
+ selector:
+ app: planet-web-${PLANET_NAME}
+ deploymentconfig: planet-web-${PLANET_NAME}
+ template:
+ metadata:
+ labels:
+ app: planet-web-${PLANET_NAME}
+ deploymentconfig: planet-web-${PLANET_NAME}
+ annotations: {}
+ spec:
+ containers:
+ - name: planet-web-${PLANET_NAME}
+ ports:
+ - containerPort: 8080
+ protocol: TCP
+ env:
+ - name: PLANET_NAME
+ value: ${PLANET_NAME}
+ resources: {}
+ livenessProbe:
+ httpGet:
+ path: "/"
+ port: 8080
+ scheme: HTTP
+ initialDelaySeconds: 60
+ timeoutSeconds: 5
+ periodSeconds: 10
+ successThreshold: 1
+ failureThreshold: 6
+ readinessProbe:
+ httpGet:
+ path: "/"
+ port: 8080
+ scheme: HTTP
+ initialDelaySeconds: 10
+ timeoutSeconds: 2
+ periodSeconds: 10
+ successThreshold: 1
+ failureThreshold: 10
+ terminationMessagePath: "/dev/termination-log"
+ terminationMessagePolicy: File
+ imagePullPolicy: Always
+ restartPolicy: Always
+ terminationGracePeriodSeconds: 30
+ dnsPolicy: ClusterFirst
+ securityContext: {}
+ schedulerName: default-scheduler
+
+- kind: Service
+ apiVersion: v1
+ metadata:
+ name: planet-web-${PLANET_NAME}
+ labels:
+ app: planet-web-${PLANET_NAME}
+ spec:
+ ports:
+ - name: web
+ protocol: TCP
+ port: 80
+ targetPort: 8080
+ selector:
+ app: planet-web-${PLANET_NAME}
+ deploymentconfig: planet-web-${PLANET_NAME}
+ type: ClusterIP
+ sessionAffinity: None
+ status:
+ loadBalancer: {}
+
+- kind: Route
+ apiVersion: v1
+ metadata:
+ name: planet-web-${PLANET_NAME}
+ creationTimestamp:
+ labels:
+ app: planet-web-${PLANET_NAME}
+ spec:
+ host: ${PLANET_DOMAIN}
+ to:
+ kind: Service
+ name: planet-web-${PLANET_NAME}
+ weight: 100
+ port:
+ targetPort: web
+ # tls:
+ # termination: edge
+ # insecureEdgeTerminationPolicy: "Redirect"
+ # wildcardPolicy: None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]