deploybot test
This commit is contained in:
BIN
helloworld-app/base/.deployment.yaml.swp
Normal file
BIN
helloworld-app/base/.deployment.yaml.swp
Normal file
Binary file not shown.
26
helloworld-app/base/deployment.yaml
Normal file
26
helloworld-app/base/deployment.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx-container
|
||||
image: nginx:latest
|
||||
volumeMounts:
|
||||
- name: web-content-vol
|
||||
mountPath: /usr/share/nginx/html
|
||||
volumes:
|
||||
- name: web-content-vol
|
||||
configMap:
|
||||
name: web-content
|
||||
8
helloworld-app/base/kustomization.yaml
Normal file
8
helloworld-app/base/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: helloworld-test
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- web-content.yaml
|
||||
|
||||
13
helloworld-app/base/service.yaml
Normal file
13
helloworld-app/base/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nginx-svc
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
|
||||
7
helloworld-app/base/web-content.yaml
Normal file
7
helloworld-app/base/web-content.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: web-content
|
||||
data:
|
||||
"index.html": "Hello world app rev0\n"
|
||||
|
||||
Reference in New Issue
Block a user