Galea Augustin
Java, Quarkus, Rest, Azure, Spring Boot, EJB, ADF 11g, GitOps, Flink , Kafka
5/14/2025
3/03/2025
Jira CLI
Example Workflow to Create a Jira Ticket Using Jira CLI
Create issue based on template:
2/24/2025
kubectl/k8s Cheat Sheet
- Namespaces
- List all namespaces:
kubectl get namespace
- Set a namespace:
kubens <namespace-name>
- See currently set namespace: kubens -c
- List all namespaces:
- Pods
- List all pods:
kubectl get pods
- List all pods in specific namespace:
kubectl get pods -n <namespace>
- Kill a pod:
kubectl delete pod <pod-name>
- Describe/get details of pod:
kubectl describe pods <pod-name>
- InitContainers
- Get logs: First describe the pod and look for the name of the init container. Then run
kubectl logs <pod-name> -c <init-container-name>
- Get logs: First describe the pod and look for the name of the init container. Then run
- List all pods:
- Deployments
- Get the manifest for a deployment:
kubectl get deploy <deployment-name> -o yaml
- Scaling a deployment:
kubectl scale --replicas=<n> deployment/<deployment-name>
- Gen env vars defined on a pod:
kubectl exec <pod> -- env
- Get the manifest for a deployment:
- ConfigMaps
- View data in a ConfigMap:
kubectl describe configmaps <name>
- View data in a ConfigMap:
12/20/2024
Learning DevOps
Learning DevOps
Terraform : Course: Terraform for the Absolute Beginners with Labs | Udemy Business
Quarkus: Building Microservices with Quarkus | Udemy Business
GitHub Actions: GitHub Actions - The Complete Guide | Udemy Business
Azure CLI : https://www.youtube.com/watch?v=GqpwiyYsNIw&ab_channel=AdamMarczak-AzureforEveryone
Kafka : Apache Kafka®: Basic Concepts, Architecture, and Examples
Kafka Stream : Kafka Streams: Basic Concepts, Architecture, and Examples
Kubernetes : Kubernetes for the Absolute Beginners - Hands-on | Udemy Business
Certified Kubernetes Administrator: Certified Kubernetes Administrator (CKA) Practice Exam Tests | Udemy Business
ArgoCD Nana: ArgoCD Tutorial for Beginners | GitOps CD for Kubernetes
GitOps Nama: What is GitOps, How GitOps works and Why it's so useful
Other link: - https://cloud.folio3.com/blog/devops-pipeline/#elementor-toc__heading-anchor-5
12/16/2024
Accessing ConfigMap Data in Quarkus
Accessing ConfigMap Data in Quarkus
To retrieve configuration data from a Kubernetes ConfigMap in a Quarkus application, you can utilize the quarkus-kubernetes-config extension, which simplifies the integration of Kubernetes ConfigMaps and Secrets into your application.
Here’s how you can do it:
Step 1: Add the Extension
First, ensure that you have thequarkus-kubernetes-config
extension added to your Quarkus project. You can add it using the following command:./mvnw quarkus:add-extension -Dextensions="kubernetes-config"
Step 2: Create a ConfigMap
Create a ConfigMap in your Kubernetes cluster that contains the configuration properties you want to use. For example, you can create a ConfigMap namedapp-config
with the following YAML:apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
greeting: "Hello, Quarkus!"
port: "8080"
kubectl apply -f configmap.yaml
Step 3: Configure Quarkus to Use the ConfigMap
In your application.properties
file, you can specify that Quarkus should read configuration values from the ConfigMap. For example:quarkus.kubernetes-config.config-map=app-config
Step 4: Access the Configuration in Your Application
You can access the values stored in the ConfigMap using the@ConfigProperty
annotation in your Quarkus application. Here’s an example of how to do this:import io.quarkus.arc.properties.UnlessBuildProfile;
import io.quarkus.runtime.Startup;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
@Startup
public class GreetingService {
@ConfigProperty(name = "greeting")
String greeting;
@ConfigProperty(name = "port")
int port;
public String getGreeting() {
return greeting;
}
public int getPort() {
return port;
}
}
Conclusion
By following these steps, you can easily access configuration data from a Kubernetes ConfigMap in your Quarkus application. This approach allows you to manage your application's configuration dynamically, making it more adaptable to different environments without changing the codebase. The use of ConfigMaps enhances the flexibility and maintainability of your applications deployed on Kubernetes.QUARKUS & GraphQL
QUARKUS & GraphQL https://www.geeksforgeeks.org/graphql-tutorial/ https://quarkus.io/guides/smallrye-graphql-client https://www.mastert...
-
Using Terraform to deploy infrastructure on Microsoft Azure In this article, we will provide a practical end-to-end example of using Terrafo...
-
The CI/CD pipeline, standing for Continuous Integration and Continuous Delivery, plays a vital role in DevOps. Continuous Integration ensu...
-
Accessing ConfigMap Data in Quarkus To retrieve configuration data from a Kubernetes ConfigMap in a Quarkus application, you can utilize the...