Last active
November 29, 2020 20:13
-
-
Save brucedkyle/813139b48fda89d302d7cea61ef07bc3 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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: minimal-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
spec: | |
rules: | |
- http: | |
paths: | |
- path: /testpath | |
pathType: Prefix | |
backend: | |
service: | |
name: test | |
port: | |
number: 80 |
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: mssql-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: mssql | |
template: | |
metadata: | |
labels: | |
app: mssql | |
spec: | |
containers: | |
- name: mssql | |
image: mcr.microsoft.com/mssql/server:2019-latest | |
ports: | |
- containerPort: 1433 | |
.. environment and volume and other features omitted ... |
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: mssql-deployment | |
spec: | |
... ommitted .. | |
template: | |
... ommitted .. | |
spec: | |
... ommitted .. | |
containers: | |
- name: mssql | |
image: mcr.microsoft.com/mssql/server:2019-latest | |
ports: | |
- containerPort: 1433 | |
env: | |
- name: MSSQL_PID | |
value: "Developer" | |
- name: ACCEPT_EULA | |
value: "Y" | |
- name: SA_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: mssql | |
key: SA_PASSWORD | |
... ommitted .. | |
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: Service | |
metadata: | |
name: mssql-deployment | |
spec: | |
selector: | |
app: mssql | |
ports: | |
- protocol: TCP | |
port: 1433 | |
targetPort: 1433 | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment