Skip to content

Commit

Permalink
Update the specification checklist and deployment directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed Mar 31, 2024
1 parent 46335b1 commit 660ed50
Show file tree
Hide file tree
Showing 65 changed files with 607 additions and 749 deletions.
4 changes: 2 additions & 2 deletions charts/dubbo-admin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ serverCompression:
minResponseSize: 10240

zookeeper:
enabled: false
enabled: true
address: zookeeper://zookeeper:2181

nacos:
enabled: true
enabled: false
address: nacos://nacos:8848
group: DEFAULT_GROUP
namespace: public
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
138 changes: 138 additions & 0 deletions deploy/kubernetes/dubbo-admin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
---
# Source: dubbo-admin/templates/cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: dubbo-admin-cm
namespace: default
data:
application.properties: |-
admin.registry.address: zookeeper://zookeeper:2181
admin.config-center: zookeeper://zookeeper:2181
admin.metadata-report.address: zookeeper://zookeeper:2181
admin.root.user.name: root
admin.root.user.password: root
admin.check.tokenTimeoutMilli: 3600000
admin.check.sessionTimeoutMilli: 3600000
admin.check.signSecret:
server.compression.enabled: true
server.compression.mime-types: text/css,text/javascript,application/javascript
server.compression.min-response-size: 10240
dubbo.application.name: dubbo-admin
dubbo.application.logger: slf4j
dubbo.registry.address: ${admin.registry.address}
spring.datasource.url: jdbc:h2:mem:~/dubbo-admin;MODE=MYSQL;
spring.datasource.username: sa
spring.datasource.password:
mybatis-plus.global-config.db-config.id-type: none
---
# Source: dubbo-admin/templates/svc.yaml
apiVersion: v1
kind: Service
metadata:
name: dubbo-admin
namespace: default
spec:
type: ClusterIP
ports:
- name: http
port: 38080
protocol: TCP
targetPort: http
---
# Source: dubbo-admin/templates/svc.yaml
apiVersion: v1
kind: Service
metadata:
name: dubbo-admin-headless
namespace: default
spec:
type: ClusterIP
clusterIP: None
ports:
- name: http
port: 38080
protocol: TCP
targetPort: http
appProtocol:
---
# Source: dubbo-admin/templates/deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: dubbo-admin
namespace: default
spec:
replicas: 1
selector:
matchLabels:

app.kubernetes.io/name: dubbo-admin
helm.sh/chart: dubbo-admin-0.5.0
app.kubernetes.io/instance: dubbo-admin
app.kubernetes.io/managed-by: Helm
template:
metadata:
labels:

app.kubernetes.io/name: dubbo-admin
helm.sh/chart: dubbo-admin-0.5.0
app.kubernetes.io/instance: dubbo-admin
app.kubernetes.io/managed-by: Helm
spec:
imagePullSecrets:
null
nodeSelector:
null
affinity:
null
tolerations:
null
containers:
- name: dubbo-admin
image: "apache/dubbo-admin:0.5.0"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
volumeMounts:
- mountPath: /config
name: application-properties
readOnly: true
- mountPath: /storage
name: storage
readOnly: true
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 60
timeoutSeconds: 30
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 60
timeoutSeconds: 30
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
startupProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 60
timeoutSeconds: 30
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
resources:
{}
volumes:
- name: application-properties
configMap:
name: dubbo-admin-cm
- name: storage
217 changes: 217 additions & 0 deletions deploy/kubernetes/nacos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
---
# Source: nacos/templates/svc.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Service
metadata:
name: nacos
namespace: default
labels:
app.kubernetes.io/name: nacos
helm.sh/chart: nacos-0.1.5
app.kubernetes.io/instance: nacos
app.kubernetes.io/managed-by: Helm
spec:
type: NodePort
ports:
- port: 8848
targetPort: 8848
protocol: TCP
name: http
- port: 9848
name: clientgen-rpc
targetPort: 9848
- port: 9849
name: raft-rpc
targetPort: 9849
- port: 7848
name: old-raft-rpc
targetPort: 7848
protocol: TCP
nodePort: 30000
selector:
app.kubernetes.io/name: nacos
---
# Source: nacos/templates/statefulset.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: nacos
namespace: default
spec:
replicas: 1
serviceName: nacos
selector:
matchLabels:
app.kubernetes.io/name: nacos
template:
metadata:
labels:
app.kubernetes.io/name: nacos
spec:
containers:
- name: nacos
image: "nacos/nacos-server:latest"
imagePullPolicy: IfNotPresent
startupProbe:
initialDelaySeconds: 180
periodSeconds: 5
timeoutSeconds: 10
httpGet:
scheme: HTTP
port: 8848
path: /nacos/v1/console/health/readiness
livenessProbe:
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
httpGet:
scheme: HTTP
port: 8848
path: /nacos/v1/console/health/liveness
ports:
- name: http
containerPort: 8848
protocol: TCP
- containerPort: 9848
name: clientgen-rpc
- containerPort: 9849
name: raft-rpc
- containerPort: 7848
name: old-raft-rpc
resources:
limits: {}
requests: {}
env:
- name: NACOS_SERVER_PORT
value: "8848"
- name: NACOS_APPLICATION_PORT
value: "8848"
- name: PREFER_HOST_MODE
value: "8848"
- name: MODE
value: "standalone"
- name: EMBEDDED_STORAGE
value: embedded
volumeMounts:
- name: data
mountPath: /home/nacos/plugins/peer-finder
subPath: peer-finder
- name: data
mountPath: /home/nacos/data
subPath: data
- name: data
mountPath: /home/nacos/logs
subPath: logs
volumes:
- name: data
emptyDir: {}
---
# Source: nacos/templates/configmap.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# Source: nacos/templates/extra-list.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# Source: nacos/templates/networkpolicy.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# Source: nacos/templates/pdb.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# Source: nacos/templates/svc-headless.yaml
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Loading

0 comments on commit 660ed50

Please sign in to comment.