-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update s2i template * config support b2i Signed-off-by: runzexia <[email protected]> * e2e test Signed-off-by: runzexia <[email protected]> * update runtimeImage org Signed-off-by: runzexia <[email protected]> * update e2e test timeout Signed-off-by: runzexia <[email protected]> * update runtime image name Signed-off-by: runzexia <[email protected]>
- Loading branch information
Showing
22 changed files
with
518 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: tomcat-s2i | ||
namespace: default | ||
labels: | ||
app: tomcat-s2i | ||
s2ibuilder-b2i-tomcat: s2ibuilder-b2i-tomcat | ||
spec: | ||
replicas: 0 | ||
selector: | ||
matchLabels: | ||
app: tomcat-s2i | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: tomcat-s2i | ||
spec: | ||
containers: | ||
- name: tomcat | ||
image: 'runzexia/hello-java:latest' | ||
ports: | ||
- containerPort: 8080 | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 200Mi | ||
requests: | ||
cpu: 10m | ||
memory: 10Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
imagePullPolicy: IfNotPresent | ||
restartPolicy: Always | ||
terminationGracePeriodSeconds: 30 | ||
dnsPolicy: ClusterFirst | ||
serviceAccountName: default | ||
serviceAccount: default | ||
securityContext: {} | ||
schedulerName: default-scheduler | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxUnavailable: 25% | ||
maxSurge: 25% | ||
revisionHistoryLimit: 10 | ||
progressDeadlineSeconds: 600 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: devops.kubesphere.io/v1alpha1 | ||
kind: S2iBuilder | ||
metadata: | ||
labels: | ||
controller-tools.k8s.io: "1.0" | ||
name: s2ibuilder-b2i-tomcat | ||
namespace: default | ||
annotations: | ||
devops.kubesphere.io/autoscale: '[{"Kind": "Deployment","Name":"tomcat-s2i","initReplicas":3},{"Kind":"StatefulSet","Name":"tomcat-s2i"}]' | ||
spec: | ||
# Add fields here | ||
config: | ||
displayName: "For Test" | ||
sourceUrl: "https://github.com/kubesphere/devops-java-sample/releases/download/v0.0.1/spring-mvc-java11.war" | ||
imageName: runzexia/hello-java | ||
tag: latest | ||
builderPullPolicy: if-not-present | ||
export: true | ||
isBinaryURL: true | ||
pushAuthentication: | ||
username: UserShouldEnterUserName | ||
password: UserShouldEnterUserPassword | ||
builderImage: kubespheredev/tomcat85-java11-centos7 | ||
buildVolumes: ["s2i_java_cache:/tmp/artifacts"] | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: devops.kubesphere.io/v1alpha1 | ||
kind: S2iRun | ||
metadata: | ||
labels: | ||
controller-tools.k8s.io: "1.0" | ||
name: tomcat-s2irun | ||
namespace: default | ||
spec: | ||
builderName: s2ibuilder-b2i-tomcat | ||
newTag: v0.1.0 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
labels: | ||
app: tomcat-s2i | ||
s2ibuilder-b2i-tomcat: s2ibuilder-b2i-tomcat | ||
name: tomcat-s2i | ||
namespace: default | ||
spec: | ||
podManagementPolicy: OrderedReady | ||
replicas: 0 | ||
revisionHistoryLimit: 10 | ||
serviceName: test | ||
selector: | ||
matchLabels: | ||
app: tomcat-s2i | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: tomcat-s2i | ||
spec: | ||
containers: | ||
- image: runzexia/hello-java:latest | ||
imagePullPolicy: Always | ||
name: container-frx25k | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 200Mi | ||
requests: | ||
cpu: 10m | ||
memory: 10Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
serviceAccount: default | ||
serviceAccountName: default | ||
terminationGracePeriodSeconds: 30 | ||
updateStrategy: | ||
rollingUpdate: | ||
partition: 0 | ||
type: RollingUpdate |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.