创建新仓库
This commit is contained in:
		| @ -0,0 +1,14 @@ | ||||
| apiVersion: v1 | ||||
| kind: ConfigMap | ||||
| metadata: | ||||
|   name: template-single-configmap | ||||
| data: | ||||
|   config.yaml: | | ||||
|     server: | ||||
|       address:     ":8000" | ||||
|       openapiPath: "/api.json" | ||||
|       swaggerPath: "/swagger" | ||||
|  | ||||
|     logger: | ||||
|       level : "all" | ||||
|       stdout: true | ||||
| @ -0,0 +1,10 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: template-single | ||||
| spec: | ||||
|   template: | ||||
|     spec: | ||||
|       containers: | ||||
|         - name : main | ||||
|           image: template-single:develop | ||||
| @ -0,0 +1,14 @@ | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
|  | ||||
| resources: | ||||
| - ../../base | ||||
| - configmap.yaml | ||||
|  | ||||
| patchesStrategicMerge: | ||||
| - deployment.yaml | ||||
|  | ||||
| namespace: default | ||||
|  | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user