-
Notifications
You must be signed in to change notification settings - Fork 116
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
f8c595b
commit 404b029
Showing
36 changed files
with
1,744 additions
and
460 deletions.
There are no files selected for viewing
File renamed without changes.
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
File renamed without changes.
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,21 @@ | ||
annotations: | ||
category: Infrastructure | ||
apiVersion: v1 | ||
appVersion: 1.19.1 | ||
description: Chart for the nginx server | ||
engine: gotpl | ||
home: http://www.nginx.org | ||
icon: https://bitnami.com/assets/stacks/nginx/img/nginx-stack-220x234.png | ||
keywords: | ||
- nginx | ||
- http | ||
- web | ||
- www | ||
- reverse proxy | ||
maintainers: | ||
- email: containers@bitnami.com | ||
name: Bitnami | ||
name: nginx | ||
sources: | ||
- https://github.com/bitnami/bitnami-docker-nginx | ||
version: 6.0.5 |
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 @@ | ||
service: | ||
type: ClusterIP |
26 changes: 26 additions & 0 deletions
26
tests/sdk/python/helm-local/step1/nginx/ci/values-with-ingress-metrics-and-serverblock.yaml
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,26 @@ | ||
# Test values file for generating all of the yaml and check that | ||
# the rendering is correct | ||
|
||
serverBlock: |- | ||
server { | ||
listen 0.0.0.0:8080; | ||
root /app; | ||
location / { | ||
index index.html index.php; | ||
} | ||
location ~ \.php$ { | ||
fastcgi_pass phpfpm-server:9000; | ||
fastcgi_index index.php; | ||
include fastcgi.conf; | ||
} | ||
} | ||
ingress: | ||
enabled: true | ||
tls: [] | ||
|
||
metrics: | ||
enabled: true | ||
## Kubeval doesn't recognise ServiceMonitor as a valid K8s object | ||
# serviceMonitor: | ||
# enabled: true |
39 changes: 39 additions & 0 deletions
39
tests/sdk/python/helm-local/step1/nginx/templates/NOTES.txt
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,39 @@ | ||
Get the NGINX URL: | ||
|
||
{{- if .Values.ingress.enabled }} | ||
|
||
You should be able to access your new NGINX installation through: | ||
|
||
{{- if .Values.ingress.hostname }} | ||
- http://{{ .Values.ingress.hostname }} | ||
{{- end }} | ||
{{- range $host := .Values.ingress.hosts }} | ||
{{- range .paths }} | ||
- http://{{ $host.name }}{{ . }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- else if contains "LoadBalancer" .Values.service.type }} | ||
{{- $port:=.Values.service.port | toString }} | ||
|
||
NOTE: It may take a few minutes for the LoadBalancer IP to be available. | ||
Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "nginx.fullname" . }}' | ||
|
||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "nginx.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") | ||
echo "NGINX URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.port }}{{ end }}/" | ||
|
||
{{- else if contains "ClusterIP" .Values.service.type }} | ||
|
||
echo "NGINX URL: http://127.0.0.1:8080/" | ||
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "nginx.fullname" . }} 8080:{{ .Values.service.port }} | ||
|
||
{{- else if contains "NodePort" .Values.service.type }} | ||
|
||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "nginx.fullname" . }}) | ||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") | ||
echo "NGINX URL: http://$NODE_IP:$NODE_PORT/" | ||
|
||
{{- end }} | ||
|
||
{{- include "nginx.validateValues" . }} | ||
{{- include "nginx.checkRollingTags" . }} |
Oops, something went wrong.