By gavinClam
Hi guys. I installed the OpenFAAS one click app from here: https://marketplace.digitalocean.com/apps/openfaas-kubernetes
I would now like to enable TLS and have followed the linked instructions here:
This command fails:
helm upgrade openfaas \
--namespace openfaas \
--reuse-values \
--values tls.yaml \
openfaas/openfaas
With
Error: UPGRADE FAILED: "openfaas" has no deployed releases
It doesn’t look like the digital ocean one click installer has created a deployment or any releases. Can I modify this command to still use helm values file to create the ingress?
I realise I could make the ingress myself, but would prefer to stick to the official helm chart.
Failing that, how do I uninstall the one click app? And I can start again by using the helm chart instead.
Many thanks,
Gavin
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The error message “openfaas” has no deployed releases suggests that there may not be an existing Helm release named “openfaas” in the specified namespace. This could be because the DigitalOcean One-Click installation doesn’t create a Helm release in the usual way.
If you want to enable TLS for your OpenFaaS installation and can’t use Helm to upgrade it directly, you can consider creating the Ingress resource manually. Here’s how you can do it:
- kubectl get ingress -n openfaas
If there’s an existing Ingress resource related to your OpenFaaS installation, you can edit it to include the TLS configuration as described in the OpenFaaS documentation you provided.
If there are no Ingress resources, you can create one manually based on your requirements. Create a new YAML file, let’s call it custom-ingress.yaml, and add the Ingress configuration with TLS:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: openfaas-ingress
namespace: openfaas
spec:
rules:
- host: your-custom-domain.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gateway
port:
number: 8080
tls:
- hosts:
- your-custom-domain.com
secretName: your-tls-secret-name
Make sure to replace your-custom-domain.com with your actual custom domain and your-tls-secret-name with the name of your TLS secret.
- kubectl apply -f custom-ingress.yaml
This should create an Ingress resource that handles TLS for your custom domain.
If you decide to uninstall the DigitalOcean One-Click OpenFaaS installation and start fresh with the official Helm chart, you can do the following:
kubectl delete -n openfaas -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml
- helm uninstall openfaas -n openfaas
Please note that the specific commands and configuration details may vary based on your setup, so ensure that you adapt them to your needs and requirements.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.