Last active
November 12, 2022 09:29
-
-
Save arn-ob/b42028b0569e0ed7991012180c02769b to your computer and use it in GitHub Desktop.
App Service and Deployement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: exp-app-service | |
spec: | |
selector: | |
app: exp-app | |
ports: | |
- protocol: "TCP" | |
port: 80 | |
targetPort: 80 | |
type: ClusterIP | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: exp-app | |
spec: | |
selector: | |
matchLabels: | |
app: exp-app | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: exp-app | |
spec: | |
containers: | |
- name: exp-app | |
image: nginx | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 80 | |
resources: | |
limits: | |
memory: 1G | |
cpu: "1" | |
imagePullSecrets: | |
- name: regcred |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment