telepresence | Local development against a remote Kubernetes | Continuous Deployment library
kandi X-RAY | telepresence Summary
kandi X-RAY | telepresence Summary
Telepresence gives developers infinite scale development environments for Kubernetes. Website: Slack: Discuss.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of telepresence
telepresence Key Features
telepresence Examples and Code Snippets
Community Discussions
Trending Discussions on telepresence
QUESTION
So I'm using telepresence to intercepte HTTP connections, but I keep getting this error :
...ANSWER
Answered 2022-Feb-03 at 10:15Ok solved, That means the port I target is not listening.
QUESTION
I have been working with Kubernetes for container orchestration and I have been using telepresence
for swapping deployments from local to dev cluster and works like a charm. This also helps me in testing and fast iterations as I do not have to build and wait for my code to be deployed to the dev cluster.
Recently I switched to ECS and I have been wondering if there is a way to swap services from ECS Farget dev cluster to service running locally on my laptop.
...ANSWER
Answered 2021-Sep-06 at 17:51No, there is no such possibility. Here's a blog post regarding testing ECS containers locally:
A Guide to Locally Testing Containers with Amazon ECS Local Endpoints and Docker Compose
QUESTION
I have this bash function in my .bash_profile:
...ANSWER
Answered 2021-Jun-13 at 16:54As mentioned in the comments of the question, the answer is that I needed to be using a bash session, but was in fact using a zsh session.
Figured this out thanks to @Barmar by running echo $SHELL
As @Shawn mentioned:
== isn't understood by a basic POSIX-only test/[ (Or by zsh's implementation)
Running chsh -s /bin/bash
to change from zsh to bash fixed it, and then I had to reopen the terminal for it to actually take effect (this may not be necessary for everyone, but at least for me using Hyper as my terminal emulator, the change didn't take effect until closing and reopening the app).
QUESTION
I'm currently installing the Ambassador Edge Stack (AES) to help manage several applications running applications in our GKE cluster but I'm experiencing a couple of issues.
The steps in the manual install guide seem to be working fine aside from edgectl
being deprecated in favour of telepresence
(I haven't tried this out really).
The next steps, setting up the ingress with GKE is where the issues begin.
As per the guide, this can be done with the legacy Ambassador API Gateway or the new AES. Doing a compare of both installs, you don't need to do anything in the API Gateway install other than sorting out patching the original aes ambassador
service and the ambassador-admin
service from LoadBalancer
to NodePort
types. I've done this with kustomize
ANSWER
Answered 2021-Apr-04 at 22:34According to the google documentation, if you want the load balancer to terminate SSL traffic then you need to configure it to do so. You can use the following instructions: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
These are linked to in the original documentation by google about how to create a L7 loadbalancer as linked in the ambassador docs: https://cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer (link comes from Step 1 of this site you linked: https://www.getambassador.io/docs/edge-stack/latest/topics/running/ambassador-with-gke/)
Unfortunately this means that you wouldn't be getting full advantage of Ambassador's letsencrypt automatic certificate generation when you specify both an ambassador Mapping
and a Host
. On my GKE cluster which I installed AES from scratch, has a Service
of type LoadBalancer
which automatically creates a google load balancer (if you're in GKE that is). This service has ports configured for 443 and 80 automatically and no additional ingress is needed.
QUESTION
I have several pods where the rollout (initial and later updates) needs to performed one by one. (Actually only the first needs to be ready before the remaining can start or be upgraded) I used stateful set for that, as it makes sure only one at a time is updated or created, but we are usung telepresence for development and it doesn’t support replacing stateful sets. So I thought I could use deployment instead of stateful set with rolling update strategy and limit the number of maxunavailable or maxsurge or whatever to “throttle” the deployment. But for the initial deploymemt that doesn’t work, as K8s creates the desired 2 at once instead one one by one. Is there a way to achieve that with a deploment or do I need to use a stateful set? (alternatively: is there a trick to use telepresence with stateful sets)
Clarification based on questions in comments:
- The problematic software here is flyway in combination with mariadb in cluster mode. Then the table locking doesn't work and simultaniously starting pods can try to perform schema and data updates at the same time
- init containers don't help, as they start at the same time for multiple instances of the pod and just make sure that the main container of each instance is started after the init container
- The problem is only on first initalization, because afterwards I can configure the rolling update strategy to only update one container at a time. In case of a scaling out I'd have to do it in increments of 1, but that would be a manual process anyway.
- I could make sure that the deployment descriptor for new deployments uses scale 1 and updates to scale 2 afterwards, but that leads to a very complicated automatic deployment process with variable scales dependig on the state and the build chain would need to check if a deployment is present to decide if it's an update or a first deployment. Which would be error prone and overly complex
ANSWER
Answered 2021-Mar-15 at 18:24In my opinion, there are two possible solutions, but both require extra effort.
I will describe both solutions and you can choose which one suits you best.
You can deploy your application with the script below:
QUESTION
I'm used to connect to my cluster using telepresence
and access cluster services locally.
Now, I need to make services in the cluster available to a group of applications that are running in docker containers locally. We can say that it's the inverse use case.
I've an app that is running in a docker container. It access services that are deploy using docker-compose
. It has been done by using a network:
ANSWER
Answered 2020-May-12 at 09:32I've find a way to solve the problem.
Instead of trying to use telepresence
as for the inverse use case, solution comes by using a port-forward
with k9s
. When creating it, it's important to do not leave the default interface, that is set to localhost
, and put 0.0.0.0
instead to ensure that it listens traffic from all interfaces.
Then I've changed my containers from inside, making the services to point to my host's IP when trying to resolve the service names. Use the method that better fits your case for this: since it's not a production environment I just tried hardcoding my host IP manually to check if the connectivity was achieved.
To point to an specific service of your cluster you need to use different ports since they will be all mapped to your host with different port-forwards
. Name resolving is no longer needed.
With this configuration, your container request will reach your host, where the port-forward routes it to the cluster. Connectivity is OK with this setup and the problem is solved.
QUESTION
When I am using telepresence to debug remote kubernetes,throw this error:
...ANSWER
Answered 2020-Mar-14 at 15:32Install socat in your remote kuberentes cluster host,I am using CentOS,so install like this:
QUESTION
when I start telepresence(v0.104) to debug remote kubernetes(v1.15.2) pod:
...ANSWER
Answered 2020-Mar-14 at 15:27If you using domain to access your cluster,try to change using IP:PORT
to access the remote cluster,I change to this way fix error upgrading connection: Upgrade request required
.The ~/.kube/config
like this:
QUESTION
I'm makeing a table in Powershell like so :
...ANSWER
Answered 2020-Jan-07 at 15:35Assuming your example table output is the result of an array of PSObjects like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install telepresence
Telepresence Quick Start: Quick Start
Install Telepresence: Install
Contributor's Guide: Guide
Meetings: Check out our community meeting schedule for opportunities to interact with Telepresence developers
Start with an empty cluster:.
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