mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Rename examples dir to examplelayout.
This commit is contained in:
14
pkg/examplelayout/simple/package/Kube-descriptor.yaml
Normal file
14
pkg/examplelayout/simple/package/Kube-descriptor.yaml
Normal file
@@ -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
|
||||
21
pkg/examplelayout/simple/package/deployment/deployment.yaml
Normal file
21
pkg/examplelayout/simple/package/deployment/deployment.yaml
Normal file
@@ -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
|
||||
8
pkg/examplelayout/simple/package/kustomization.yaml
Normal file
8
pkg/examplelayout/simple/package/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
namePrefix: baseprefix-
|
||||
commonLabels:
|
||||
foo: bar
|
||||
commonAnnotations:
|
||||
baseAnno: This is an base annotation
|
||||
resources:
|
||||
- deployment/deployment.yaml
|
||||
- service/service.yaml
|
||||
11
pkg/examplelayout/simple/package/service/service.yaml
Normal file
11
pkg/examplelayout/simple/package/service/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mungebot-service
|
||||
labels:
|
||||
app: mungebot
|
||||
spec:
|
||||
ports:
|
||||
- port: 7002
|
||||
selector:
|
||||
app: mungebot
|
||||
Reference in New Issue
Block a user