forked from carvel-dev/kapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b736f1
commit 638f8ed
Showing
4 changed files
with
281 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Based on https://github.com/k14s/k8s-simple-app-example/tree/develop/config-step-1-minimal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: default | ||
name: simple-app | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
selector: | ||
simple-app: "" | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: default | ||
name: simple-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
simple-app: "" | ||
template: | ||
metadata: | ||
labels: | ||
simple-app: "" | ||
spec: | ||
containers: | ||
- name: simple-app | ||
image: docker.io/dkalinin/k8s-simple-app@sha256:4c8b96d4fffdfae29258d94a22ae4ad1fe36139d47288b8960d9958d1e63a9d0 | ||
env: | ||
- name: HELLO_MSG | ||
value: stranger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: default | ||
name: simple-app-node | ||
spec: | ||
type: NodePort | ||
ports: | ||
- port: 80 | ||
targetPort: 80 | ||
nodePort: 31111 | ||
selector: | ||
simple-app: "" | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: default | ||
name: simple-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
simple-app: "" | ||
template: | ||
metadata: | ||
labels: | ||
simple-app: "" | ||
spec: | ||
containers: | ||
- name: simple-app | ||
image: docker.io/dkalinin/k8s-simple-app@sha256:4c8b96d4fffdfae29258d94a22ae4ad1fe36139d47288b8960d9958d1e63a9d0 | ||
env: | ||
- name: HELLO_MSG | ||
valueFrom: | ||
configMapKeyRef: | ||
name: simple-app | ||
key: hello_msg | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: simple-app | ||
data: | ||
hello_msg: friend |
Oops, something went wrong.