Last active
March 22, 2018 11:59
-
-
Save ThorstenHans/5280889fe472051bf2c492ce70779181 to your computer and use it in GitHub Desktop.
k8s sample resources
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: Pod | |
metadata: | |
name: demo-nginx | |
labels: | |
app: demo | |
artefact: api | |
spec: | |
containers: | |
- name: webapp | |
image: nginx:alpine | |
ports: | |
- containerPort: 80 |
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: Secret | |
metadata: | |
name: demo-secret | |
type: Opaque | |
data: | |
username: VGhvcnN0ZW4= | |
password: VGhpcyBpcyBqdXN0IGEgc2FtcGxlLCBidXQgdGhhbmtzIGZvciBkZWNvZGluZw== |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: nginx-svc | |
spec: | |
selector: | |
artefact: api | |
ports: | |
- | |
protocol: TCP | |
port: 8080 | |
targetPort: 80 | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment