Skip to content

Instantly share code, notes, and snippets.

View ItsCosmas's full-sized avatar
🔨
Building

Cozy! ItsCosmas

🔨
Building
View GitHub Profile
import io.lettuce.core.ReadFrom;
import io.lettuce.core.cluster.ClusterClientOptions;
import io.lettuce.core.cluster.ClusterTopologyRefreshOptions;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.ReactiveRedisClusterConnection;
import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory;
import org.springframework.data.redis.connection.RedisClusterConfiguration;
import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration;
@ItsCosmas
ItsCosmas / kubectl_exec.sh
Last active January 15, 2025 06:42
kubectl exec
kubectl config get-contexts
kubectl config use-context <context-name>
kubectl get namespaces
kubectl get pods -n <namespace>
kubectl exec -i -t -n <namespace-name> <pod-name> -c web -- sh -c "clear; (bash || ash || sh)"