hello-kubernetes | Example end-to-end build | Continuous Deployment library
kandi X-RAY | hello-kubernetes Summary
kandi X-RAY | hello-kubernetes Summary
Example end-to-end build, test, and deploy pipelines for Kubernetes, using Google Cloud Build.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- This is the main loop .
- Greet returns a greeting
hello-kubernetes Key Features
hello-kubernetes Examples and Code Snippets
Community Discussions
Trending Discussions on hello-kubernetes
QUESTION
I'm struggling to expose a service in an AWS cluster to outside and access it via a browser. Since my previous question haven't drawn any answers, I decided to simplify the issue in several aspects.
First, I've created a deployment which should work without any configuration. Based on this article, I did
kubectl create namespace tests
created file
...probe-service.yaml
based onpaulbouwer/hello-kubernetes:1.8
and deployed itkubectl create -f probe-service.yaml -n tests
:
ANSWER
Answered 2021-Nov-16 at 13:46Well, I haven't figured this out for ArgoCD yet (edit: figured, but the solution is ArgoCD-specific), but for this test service it seems that path resolving is the source of the issue. It may be not the only source (to be retested on test2 subdomain), but when I created a new subdomain in the hosted zone (test3, not used anywhere before) and pointed it via A
entry to the load balancer (as "alias" in AWS console), and then added to the ingress a new rule with /
path, like this:
QUESTION
I'm trying to setup TLS for a service that's available outside a Kubernetes cluster (AWS EKS). With cert-manager, I've successfully issued a certificate and configured ingress, but I'm still getting error NET::ERR_CERT_AUTHORITY_INVALID
. Here's what I have:
namespace
tests
andhello-kubernetes
in it (both deployment and service have namehello-kubernetes-first
, serivce is ClusterIP withport
80 andtargetPort
8080, deployment is based onpaulbouwer/hello-kubernetes:1.8
, see details in my previous question)DNS and ingress configured to show the service:
...
ANSWER
Answered 2021-Nov-15 at 21:31Your ClusterIssuer refers to LetsEncrypt staging issuer. Remove that setting / the default should use their production setup. As pointed out in comments: https://acme-v02.api.letsencrypt.org/directory
Deleting the previously generated secrets or switching to new secrets should ensure your certificates would be re-generated, using the right issuer.
The staging issuer could be useful testing LetsEncrypt integration, it shouldn't be used otherwise.
QUESTION
I have a deployment yaml file that looks like this:
...ANSWER
Answered 2021-Mar-12 at 03:25You showed kubectl
version. Your kubernetes version also need to be v1.20. Make sure you are using kubernetes version v1.20.
Use kubectl version
for seeing both client and server version. Where client version refers to kubectl
version and server version refers to kubernetes
version.
As far the k8s v1.20 release note doc: Previously introduced in 1.19 behind a feature gate, SetHostnameAsFQDN
is now enabled by default. More details on this behavior is available in documentation for DNS for Services and Pods
QUESTION
We are using iotedge on kubernetes and I am looking for a way to add dapr sidecars to the deployed iothub modules.
Are there any other custom createOptions available to bypass the iothub abstraction?
To be more specific: In the Pod/Deployment manifests require special dapr annotations so that the Dapr Sidecar Injector can do its work.
...ANSWER
Answered 2021-Jan-19 at 20:45createOptions.Labels
are translated into pod annotations. So you can put the required Dapr annotations as the module's labels:
metadata
name = Name will be the module name, sanitized to be a K8s identifier. namespace = The given namespace. labels = Default label set. annotations = The pod's metadata will have one fixed annotation: net.azure-devices.edge.original-moduleid = unsanitized module id from edge deployment specification. then settings.createOptions.Labels will be added to the pod's annotations.
There is no way to "opt-out" of injecting the iotedge proxy but it should be benign even if it is co-present with Dapr's injected sidecar. I've not tested this, so let us if it works for you!
QUESTION
How do I clear old deployments? I'm able shrink a deployment to 0 replicas via kubectl scale deployment.v1.apps/hello-kubernetes3 --replicas=0
, but as shown below they're still present in some form.
ANSWER
Answered 2020-Sep-10 at 09:59This is a community wiki answer as a part of it would be based on @meaningqo comment but I would like to share some more light on this topic with a help of the official documentations.
What you were doing in the first place is not deleting a deployment but actually scaling it to 0. In order to delete a deployment or any other resource you should use the kubectl delete command:
Delete resources by filenames, stdin, resources and names, or by resources and label selector.
JSON and YAML formats are accepted. Only one type of the arguments may be specified: filenames, resources and names, or resources and label selector.
Note that:
Some resources, such as pods, support graceful deletion. These resources define a default period before they are forcibly terminated (the grace period) (...) Because these resources often represent entities in the cluster, deletion may not be acknowledged immediately.
So you may want to wait a bit before seeing the results.
Referring to your second question. There are also other options aimed to work with ReplicaSets
specifically:
I also recommend familiarizing yourself with the whole ReplicaSet guide for better understanding of this particular topic.
QUESTION
Due to the nested nature of kind I can't figure out what port to use or how to configure it so that I can just type localhost to get to it.
KIND YAML:
...ANSWER
Answered 2020-Sep-09 at 06:21Referring from docs you need to use extraPortMappings
to allow the local host to make requests to the hello-kubernetes over port 80
QUESTION
I have created small nginx deployment and type as LoadBalancer in Azure Kubernetes service, but I was unable to access the application using LoadBalaner service. Can some one provide the solution
I have already updated security group to allow all traffic, but no use.
Do I need to update any security group to access the application?
Please find the deployment file.
cat nginx.yml
...ANSWER
Answered 2020-Sep-08 at 08:25Nginx container is using port 80 by default and you are trying to connect to port 8080 where nothing is listening and thus getting connection refused.
Take a look here at nginx conateiner Dockerfile. What port do you see?
All you need to do to make it work is to change target port like following:
QUESTION
I am using Nginx Ingress controller(Internal Ingress) and Cert-manger 0.15.1 helm charts. Kubernetes version: 1.14.x
My certificate status is not coming to to True. I have tried using both types of challengers DNS01 and HTTP01. Its the same. Error:
...ANSWER
Answered 2020-Jul-20 at 10:17It happens because you are using staging
server from Let's Encrypt.
The staging
server is used only for tests, and after you consider it's ok you can move to production
servers.
You need to create a new issuer using this examples
After change your ingress annotation to :
QUESTION
I have installed https://docs.cert-manager.io/en/release-0.11/reference/clusterissuers.html on my K8S cluster and use it with Nginx ingress controller.
It is working properly with my hello demo service:
...ANSWER
Answered 2020-May-08 at 10:01Please keep in mind, that resource names in Kubernetes needs to be in lower-case:
secretName
that's probably causing your issue.
QUESTION
I have installed on my K8S https://cert-manager.io and have created cluster issuer:
...ANSWER
Answered 2020-May-05 at 20:32You haven't specified the secrets containing your certificate:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hello-kubernetes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page