This commit is contained in:
parent
e596578cdf
commit
b583a5be65
@ -19,4 +19,4 @@ steps:
|
||||
- git pull origin HITLER_DID_EVERYTHING_WRONG_EXCEPT_THE_STUFF_HE_DID_RIGHT
|
||||
- name: manifests
|
||||
commands:
|
||||
- su - hogweed1 -c "minikube kubectl -- apply -f /etc/k8s/manifests"
|
||||
- su - hogweed1 -c "ls /etc/k8s/manifests/**/*.yaml | xargs -n 1 bash -c 'minikube kubectl -- apply -f $0'"
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
apiVersion: v2
|
||||
name: nginx-chart
|
||||
description: My First Helm Chart
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.0.0"
|
||||
maintainers:
|
||||
- email: vdk2ch@vdk2ch.ru
|
||||
name: vdk2ch
|
@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-index-html-configmap
|
||||
namespace: default
|
||||
data:
|
||||
index.html: |
|
||||
<html>
|
||||
<h1>Welcome</h1>
|
||||
</br>
|
||||
<h1>Hi! I got deployed in {{ .Values.env.name }} Environment using Helm Chart </h1>
|
||||
</html
|
@ -1,32 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.name }}
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
namespace: {{ .Values.namespace }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: nginx-index-file
|
||||
mountPath: /usr/share/nginx/html/
|
||||
volumes:
|
||||
- name: nginx-index-file
|
||||
configMap:
|
||||
name: index-html-configmap
|
@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-service
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- protocol: {{ .Values.service.protocol | default "TCP" }}
|
||||
port: {{ .Values.service.port }}
|
||||
targetPort: {{ .Values.service.targetPort }}
|
@ -1,17 +0,0 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: nginx
|
||||
tag: "1.16.0"
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
name: nginx-service
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
targetPort: 8776
|
||||
|
||||
env:
|
||||
name: dev
|
||||
|
||||
namespace: vdk2ch
|
12
manifests/02-services/hw-service.yaml
Normal file
12
manifests/02-services/hw-service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hw-service
|
||||
namespace: vdk2ch
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: helloworld
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 9376
|
Loading…
Reference in New Issue
Block a user