Merge remote-tracking branch 'origin/master'
This commit is contained in:
Vendored
+6
-6
@@ -2,7 +2,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
parameters {
|
parameters {
|
||||||
choice(name: 'PROJECT_NAME', choices: ['chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke'], description: '请选择发布的项目')
|
choice(name: 'PROJECT_NAME', choices: ['chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke', 'fangjiaopen'], description: '请选择发布的项目')
|
||||||
}
|
}
|
||||||
tools {
|
tools {
|
||||||
jdk 'JDK8'
|
jdk 'JDK8'
|
||||||
@@ -17,7 +17,7 @@ pipeline {
|
|||||||
stage('Maven Build') {
|
stage('Maven Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke']
|
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke', 'fangjiaopen']
|
||||||
for (def project : projects) {
|
for (def project : projects) {
|
||||||
if (params.PROJECT_NAME == project) {
|
if (params.PROJECT_NAME == project) {
|
||||||
dir("deliverables/${project}") {
|
dir("deliverables/${project}") {
|
||||||
@@ -33,8 +33,8 @@ pipeline {
|
|||||||
stage('Docker Build') {
|
stage('Docker Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke']
|
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke', 'fangjiaopen']
|
||||||
def imagesName = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static', 'geluke':"geluke"]
|
def imagesName = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static', 'geluke':"geluke", 'fangjiaopen': 'fangjia-open']
|
||||||
for (def project : projects) {
|
for (def project : projects) {
|
||||||
if (params.PROJECT_NAME == project) {
|
if (params.PROJECT_NAME == project) {
|
||||||
dir("projects/${imagesName[project]}") {
|
dir("projects/${imagesName[project]}") {
|
||||||
@@ -53,8 +53,8 @@ pipeline {
|
|||||||
stage('K8S Deploy') {
|
stage('K8S Deploy') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke']
|
def projects = ['fangjiabkoff', 'chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke', 'fangjiaopen']
|
||||||
def k8s_config_map = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static', 'geluke':"geluke"]
|
def k8s_config_map = ['fangjiabkoff': 'fangjia-bkoff', 'chafangtong': 'chafangtong', 'fangjia': 'fangjia-coresite', 'fangjiapds': 'fangjia-pds', 'fangjiastatic': 'fangjia-static', 'geluke':"geluke", 'fangjiaopen': 'fangjia-open']
|
||||||
for (def project : projects) {
|
for (def project : projects) {
|
||||||
if (params.PROJECT_NAME == project) {
|
if (params.PROJECT_NAME == project) {
|
||||||
dir("deliverables/k8s") {
|
dir("deliverables/k8s") {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
:apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: fangjia-open
|
name: fangjia-open
|
||||||
@@ -37,20 +37,39 @@ spec:
|
|||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: web
|
name: web
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
# readinessProbe:
|
||||||
|
# httpGet:
|
||||||
|
# path: /k8s/readiness
|
||||||
|
# port: web
|
||||||
|
# initialDelaySeconds: 5
|
||||||
|
# periodSeconds: 10
|
||||||
|
# livenessProbe:
|
||||||
|
# httpGet:
|
||||||
|
# path: /k8s/liveness
|
||||||
|
# port: web
|
||||||
|
# initialDelaySeconds: 10
|
||||||
|
# periodSeconds: 5
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: host-time
|
- name: host-time
|
||||||
mountPath: /etc/localtime
|
mountPath: /etc/localtime
|
||||||
- name: nfs
|
- name: goojiaconfig
|
||||||
mountPath: /home/goojia/goojiaconfig
|
mountPath: /home/goojia/goojiaconfig
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: host-time
|
- name: host-time
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/localtime
|
path: /etc/localtime
|
||||||
- name: nfs
|
- name: goojiaconfig
|
||||||
nfs:
|
cephfs:
|
||||||
path: /home/nfs_data/goojiaconfig
|
monitors:
|
||||||
server: 192.168.0.18
|
- 192.168.0.208:6789
|
||||||
|
- 192.168.0.209:6789
|
||||||
|
- 192.168.0.210:6789
|
||||||
|
user: admin
|
||||||
|
path: /k8s/goojiaconfig
|
||||||
|
secretRef:
|
||||||
|
name: ceph-secret
|
||||||
|
readOnly: false
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -69,4 +88,4 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- port: 8080
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
nodePort: 38089
|
nodePort: 31088
|
||||||
Reference in New Issue
Block a user