# Remove Application Logic from Kubernetes Config

DevFeed: [Remove Application Logic from Kubernetes Config](<https://devfeed.tech/articles/remove-application-logic-from-kubernetes-config-23496.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/remove-application-logic-from-kubernetes-config>)

Author: Dylan Anthony

Published: 2024-03-05T09:09:00Z

Content type: article

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Microservice](<https://devfeed.tech/topics/microservice.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [YAML](<https://devfeed.tech/topics/yaml.md>), [API](<https://devfeed.tech/topics/api.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>)

Tags: [apollo-federation](<https://devfeed.tech/tags/apollo-federation.md>), [backend](<https://devfeed.tech/tags/backend.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [fragmentation](<https://devfeed.tech/tags/fragmentation.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [ingress](<https://devfeed.tech/tags/ingress.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

## AI overview

This article explains how duplicating microservice application logic in Kubernetes YAML can cause fragmented information, inconsistencies, and bugs. It presents GraphQL and Apollo Federation as a way to reduce configuration, prevent conflicting routes, keep routing aligned with application code, and make service dependencies declarative.

## Source excerpt

The traditional approach to microservices in Kubernetes requires duplicating application logic into YAML config files. This leads to information fragmentation, inconsistencies, and ultimately bugs. With GraphQL and Apollo Federation, you can reduce the amount of required config, prevent duplication, and have a better experience maintaining your API. In particular, Apollo Federation can: - Prevent conflicting API routes, and give better visibility into the entire API.