add example
This commit is contained in:
		
							parent
							
								
									2a68351c95
								
							
						
					
					
						commit
						0428188ea6
					
				|  | @ -0,0 +1,38 @@ | |||
| # This example is from https://docs.google.com/document/d/1cLPGweVEYrVqQvBLJg6sxV-TrE5Rm2MNOBA_cxZP2WU/edit#heading=h.dr88tktf0e99 | ||||
| 
 | ||||
| apiVersion: manifest.k8s.io/v1alpha1 | ||||
| kind: Manifest | ||||
| metadata: | ||||
|   name: test-infra-mungebot | ||||
| description: Mungebot config for test-infra repo | ||||
| namePrefix: test-infra- | ||||
| # Labels to add to all objects and selectors. | ||||
| # These labels would also be used to form the selector for apply --prune | ||||
| # Named differently than “labels” to avoid confusion with metadata for this object | ||||
| objectLabels: | ||||
|   app: mungebot | ||||
|   org: kubernetes | ||||
|   repo: test-infra | ||||
| objectAnnotations: | ||||
|   note: This is a test annotation | ||||
| resources: | ||||
| - ../../package | ||||
| #These are strategic merge patch overlays in the form of API resources | ||||
| patches: | ||||
| - deployment.yaml | ||||
| #There could also be configmaps in Base, which would make these overlays | ||||
| configmaps: | ||||
| - type: env | ||||
|   namePrefix: app-env | ||||
|   file: app.env | ||||
| - type: file | ||||
|   namePrefix: app-config | ||||
|   file: app-init.ini | ||||
| #There could be secrets in Base, if just using a fork/rebase workflow | ||||
| secrets: | ||||
| - type: tls | ||||
|   namePrefix: app-tls | ||||
|   certFile: tls.cert | ||||
|   keyFile: tls.key | ||||
| recursive: false | ||||
| prune: true # I’d make this the default | ||||
|  | @ -0,0 +1,13 @@ | |||
| apiVersion: extensions/v1beta1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: mungebot | ||||
| spec: | ||||
|   replicas: 2 | ||||
|   template: | ||||
|     spec: | ||||
|       containers: | ||||
|       - name: nginx | ||||
|         image: nginx:1.7.9 | ||||
|       - name: busybox | ||||
|         image: busybox | ||||
|  | @ -0,0 +1,14 @@ | |||
| # This example is from https://docs.google.com/document/d/1cLPGweVEYrVqQvBLJg6sxV-TrE5Rm2MNOBA_cxZP2WU/edit#heading=h.dr88tktf0e99 | ||||
| 
 | ||||
| # Inspired by https://github.com/kubernetes/helm/blob/master/docs/charts.md | ||||
| # But Kubernetes API style | ||||
| apiVersion: manifest.k8s.io/v1alpha1 | ||||
| kind: Descriptor | ||||
| metadata: | ||||
|   name: mungebot | ||||
| description: Mungegithub package | ||||
| # These are search keywords | ||||
| keywords: [github, bot, kubernetes] | ||||
| home: https://github.com/bgrant0607/mungebot-pkg/blob/master/README.md | ||||
| sources: https://github.com/bgrant0607/mungebot-pkg | ||||
| icon: https://github.com/bgrant0607/mungebot-pkg/blob/master/icon.png | ||||
|  | @ -0,0 +1,14 @@ | |||
| # This example is from https://docs.google.com/document/d/1cLPGweVEYrVqQvBLJg6sxV-TrE5Rm2MNOBA_cxZP2WU/edit#heading=h.dr88tktf0e99 | ||||
| 
 | ||||
| # Inspired by https://github.com/kubernetes/helm/blob/master/docs/charts.md | ||||
| # But Kubernetes API style | ||||
| apiVersion: manifest.k8s.io/v1alpha1 | ||||
| kind: Manifest | ||||
| metadata: | ||||
|   name: mungebot | ||||
| resources: | ||||
| - deployment.yaml | ||||
| #Recursive would be similar to kubectl --recursive behavior, extended to look for Kube-manifest.yaml | ||||
| recursive: false | ||||
| #Whether PersistentVolumeClaims should be deleted with the other resources | ||||
| ownPersistentVolumeClaims: true | ||||
|  | @ -0,0 +1,21 @@ | |||
| apiVersion: extensions/v1beta1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: mungebot | ||||
|   labels: | ||||
|     app: mungebot | ||||
| spec: | ||||
|   replicas: 1 | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: mungebot | ||||
|     spec: | ||||
|       containers: | ||||
|       - name: nginx | ||||
|         image: nginx | ||||
|         env: | ||||
|         - name: foo | ||||
|           value: bar | ||||
|         ports: | ||||
|         - containerPort: 80 | ||||
		Loading…
	
		Reference in New Issue