Difference between revisions of "Kubernetes"
From John Freier
(Created page with " == Configurations YAML File == ConfigMap # ConfigMap Configuration - kind: ConfigMap apiVersion: v1 metadata: name: app-config namespace: app-ns...") |
|||
Line 1: | Line 1: | ||
== Configurations YAML File == | == Configurations YAML File == | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Service | ||
+ | |||
+ | - kind: Service | ||
+ | apiVersion: v1 | ||
+ | metadata: | ||
+ | name: app-service | ||
+ | namespace: app-ns | ||
+ | spec: | ||
+ | ports: | ||
+ | - port: 8080 | ||
+ | targetPort: 8080 | ||
+ | selector: | ||
+ | app: my-app | ||
ConfigMap | ConfigMap |
Revision as of 13:42, 4 April 2022
Configurations YAML File
Service
- kind: Service apiVersion: v1 metadata: name: app-service namespace: app-ns spec: ports: - port: 8080 targetPort: 8080 selector: app: my-app
ConfigMap
# ConfigMap Configuration - kind: ConfigMap apiVersion: v1 metadata: name: app-config namespace: app-ns data: CONFIG_TEMP: soon-to-come