Created
May 10, 2023 08:41
-
-
Save tiesmaster/d7b397f19015514451fd0cd58b37fb06 to your computer and use it in GitHub Desktop.
Sample workload on Kubernetes to test the Tailscale operator
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sample-workload-one | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: sample-workload-one | |
template: | |
metadata: | |
labels: | |
app: sample-workload-one | |
spec: | |
containers: | |
- name: sample-workload-one | |
image: mcr.microsoft.com/azuredocs/aks-helloworld:v1 | |
ports: | |
- containerPort: 80 | |
env: | |
- name: TITLE | |
value: "Sample workload one: Hoi" | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: sample-workload-one | |
spec: | |
type: LoadBalancer | |
loadBalancerClass: tailscale | |
ports: | |
- port: 80 | |
selector: | |
app: sample-workload-one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This returns the following output, when running successfully: