Skip to content

Instantly share code, notes, and snippets.

@tiesmaster
Created May 10, 2023 08:41
Show Gist options
  • Save tiesmaster/d7b397f19015514451fd0cd58b37fb06 to your computer and use it in GitHub Desktop.
Save tiesmaster/d7b397f19015514451fd0cd58b37fb06 to your computer and use it in GitHub Desktop.
Sample workload on Kubernetes to test the Tailscale operator
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
@tiesmaster
Copy link
Author

This returns the following output, when running successfully:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" type="text/css" href="/static/default.css">
    <title>Sample workload one: Hoi</title>

    <script language="JavaScript">
        function send(form){
        }
    </script>

</head>
<body>
    <div id="container">
        <form id="form" name="form" action="/"" method="post"><center>
        <div id="logo">Sample workload one: Hoi</div>
        <div id="space"></div>
        <img src="/static/acs.png" als="acs logo">
        <div id="form">
        </div>
    </div>
</body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment