Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
React
react-workshop
Commits
2102975d
Commit
2102975d
authored
Jan 30, 2018
by
Jens
Browse files
'init'
parent
0c869cf0
Changes
9
Hide whitespace changes
Inline
Side-by-side
content-repository/api/package.json
0 → 100644
View file @
2102975d
{
"name"
:
"api"
,
"version"
:
"1.0.0"
,
"description"
:
""
,
"main"
:
"index.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
"author"
:
"Jens Neuse <jens.neuse@gmx.de>"
,
"license"
:
"ISC"
,
"devDependencies"
:
{
"postgraphile"
:
"^4.0.0-alpha2.28"
}
}
\ No newline at end of file
content-repository/chart/.helmignore
0 → 100644
View file @
2102975d
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
*.txt
content-repository/chart/Chart.yaml
0 → 100644
View file @
2102975d
apiVersion
:
v1
description
:
Postgresql Helm Chart
name
:
postgresql
version
:
0.1.0
content-repository/chart/templates/NOTES.txt
0 → 100644
View file @
2102975d
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
http://{{ . }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "chart.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get svc -w {{ template "chart.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "chart.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.service.externalPort }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "chart.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl port-forward $POD_NAME 8080:{{ .Values.service.internalPort }}
{{- end }}
content-repository/chart/templates/_helpers.tpl
0 → 100644
View file @
2102975d
{{
/*
vim
:
set
filetype
=
mustache
:
*/
}}
{
{
/*
Expand
the
name
of
the
chart
.
*/
}
}
{{- define "chart.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Create
a
default
fully
qualified
app
name
.
We
truncate
at
63
chars
because
some
Kubernetes
name
fields
are
limited
to
this
(
by
the
DNS
naming
spec
).
*/
}
}
{{- define "chart.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
content-repository/chart/templates/deployment.yaml
0 → 100644
View file @
2102975d
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
{{
template "chart.fullname" .
}}
labels
:
app
:
{{
template "chart.name" .
}}
chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version | replace "+" "_" }}
release
:
{{
.Release.Name
}}
heritage
:
{{
.Release.Service
}}
spec
:
replicas
:
{{
.Values.replicaCount
}}
template
:
metadata
:
labels
:
app
:
{{
template "chart.name" .
}}
release
:
{{
.Release.Name
}}
spec
:
containers
:
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
ports
:
-
containerPort
:
{{
.Values.service.internalPort
}}
content-repository/chart/templates/service.yaml
0 → 100644
View file @
2102975d
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
template "chart.fullname" .
}}
labels
:
app
:
{{
template "chart.name" .
}}
chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version | replace "+" "_" }}
release
:
{{
.Release.Name
}}
heritage
:
{{
.Release.Service
}}
spec
:
type
:
{{
.Values.service.type
}}
ports
:
-
port
:
{{
.Values.service.externalPort
}}
targetPort
:
{{
.Values.service.internalPort
}}
protocol
:
TCP
name
:
{{
.Values.service.name
}}
selector
:
app
:
{{
template "chart.name" .
}}
release
:
{{
.Release.Name
}}
\ No newline at end of file
content-repository/chart/values.yaml
0 → 100644
View file @
2102975d
# Default values for chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount
:
1
image
:
repository
:
postgres
tag
:
9.6
pullPolicy
:
IfNotPresent
service
:
name
:
backend-db
type
:
ClusterIP
externalPort
:
5432
internalPort
:
5432
content-repository/getting-started.md
0 → 100644
View file @
2102975d
# Start Minikube
Start powershell as Administrator
``
minikube start
``
``
@FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i
``
``
docker ps
``
``
minikube dashboard
``
``
PS C:
\W
indows
\s
ystem32> $env:path += ";C:
\U
sers
\J
ens.Neuse
\
-windows-amd64.tar
\h
elm-v2.7.0-windows-amd64
\w
indows-amd64"
``
``
helm init
``
``
helm version
``
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment