mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 06:45:32 +00:00
implement resolve and apply
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
3b1b7ab2ec
commit
1ed99cbe07
18 changed files with 877 additions and 11 deletions
17
example/k8s/deployment.yaml
Normal file
17
example/k8s/deployment.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hello-krust
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hello-krust
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hello-krust
|
||||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
image: krust://./example/hello-krust
|
||||
10
example/k8s/service.yaml
Normal file
10
example/k8s/service.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hello-krust-svc
|
||||
spec:
|
||||
selector:
|
||||
app: hello-krust
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
Loading…
Add table
Add a link
Reference in a new issue