Created
May 9, 2022 21:42
-
-
Save peterj/b4e3c64e7ab33499b61f5375a1dbc2a9 to your computer and use it in GitHub Desktop.
This file contains 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: ServiceAccount | |
metadata: | |
name: helloworld | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: helloworld | |
labels: | |
app: helloworld | |
service: helloworld | |
spec: | |
ports: | |
- name: http | |
port: 80 | |
targetPort: 3000 | |
selector: | |
app: helloworld | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: helloworld | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: helloworld | |
version: v1 | |
template: | |
metadata: | |
labels: | |
app: helloworld | |
version: v1 | |
spec: | |
serviceAccountName: helloworld | |
containers: | |
- image: learncloudnative/helloworld:0.1.0 | |
imagePullPolicy: IfNotPresent | |
name: helloworld | |
ports: | |
- containerPort: 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment