feat: 增加app

master v1.0.2
icechen 2022-01-09 22:13:56 +08:00
parent b86b8baa56
commit 540e84ef09
7 changed files with 87 additions and 5 deletions

View File

@ -0,0 +1,20 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: {{ .Release.Name }}
namespace: {{ .Values.nameSpace }}
labels:
app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
annotations:
servicemesh.kubesphere.io/enabled: 'true'
spec:
selector:
matchLabels:
app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
addOwnerRef: true

View File

@ -5,18 +5,32 @@ metadata:
namespace: {{ .Values.nameSpace }} namespace: {{ .Values.nameSpace }}
labels: labels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
annotations: annotations:
kubesphere.io/alias-name: {{ .Values.aliasName }} kubesphere.io/alias-name: {{ .Values.aliasName }}
kubesphere.io/creator: drone kubesphere.io/creator: drone
meta.helm.sh/release-name: {{ .Release.Name }}
meta.helm.sh/release-namespace: {{ .Values.nameSpace }}
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
template: template:
metadata: metadata:
labels: labels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
spec: spec:
volumes: volumes:
- name: host-time - name: host-time

View File

@ -4,6 +4,12 @@ apiVersion: networking.k8s.io/v1
metadata: metadata:
name: {{ .Release.Name }} name: {{ .Release.Name }}
namespace: {{ .Values.nameSpace }} namespace: {{ .Values.nameSpace }}
labels:
app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
annotations: annotations:
kubesphere.io/creator: drone kubesphere.io/creator: drone
nginx.ingress.kubernetes.io/enable-cors: 'true' nginx.ingress.kubernetes.io/enable-cors: 'true'

View File

@ -7,6 +7,10 @@ metadata:
kubesphere.io/creator: drone kubesphere.io/creator: drone
labels: labels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
spec: spec:
ports: ports:
- name: http-{{ .Release.Name }} - name: http-{{ .Release.Name }}

View File

@ -0,0 +1,20 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: {{ .Release.Name }}
namespace: {{ .Values.nameSpace }}
labels:
app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
annotations:
servicemesh.kubesphere.io/enabled: 'true'
spec:
selector:
matchLabels:
app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
addOwnerRef: true

View File

@ -5,18 +5,32 @@ metadata:
namespace: {{ .Values.nameSpace }} namespace: {{ .Values.nameSpace }}
labels: labels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
annotations: annotations:
kubesphere.io/alias-name: {{ .Values.aliasName }} kubesphere.io/alias-name: {{ .Values.aliasName }}
kubesphere.io/creator: drone kubesphere.io/creator: drone
meta.helm.sh/release-name: {{ .Release.Name }}
meta.helm.sh/release-namespace: {{ .Values.nameSpace }}
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
template: template:
metadata: metadata:
labels: labels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
spec: spec:
volumes: volumes:
- name: host-time - name: host-time

View File

@ -7,9 +7,13 @@ metadata:
kubesphere.io/creator: drone kubesphere.io/creator: drone
labels: labels:
app: {{ .Release.Name }} app: {{ .Release.Name }}
app.kubernetes.io/version: v1
app.kubernetes.io/name: {{ .Release.Name }}
version: v1
app.kubernetes.io/instance: {{ .Release.Name }}
spec: spec:
ports: ports:
- name: grpc-{{ .Release.Name }} - name: http-{{ .Release.Name }}
protocol: TCP protocol: TCP
port: 80 port: 80
targetPort: {{ .Values.port }} targetPort: {{ .Values.port }}